From 256de0db587d19d8bdb7516979f070cb3214302d Mon Sep 17 00:00:00 2001 From: Alessandro Gagliardi <114491917+alexgag11@users.noreply.github.com> Date: Fri, 27 Jun 2025 22:57:46 +0200 Subject: [PATCH] Update get_paths Get paths is not longer available from collections. Updated with simply get_paths function. --- ipart/utils/funcs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipart/utils/funcs.py b/ipart/utils/funcs.py index ba4fbd4..1b269bb 100644 --- a/ipart/utils/funcs.py +++ b/ipart/utils/funcs.py @@ -1221,8 +1221,8 @@ def getBinContour(mask,lons=None,lats=None,return_largest=True): if lats is None: lats=np.arange(mask.shape[0]) - cs=plt.contourf(lons,lats,mask,[0.9,1.1]).collections - conts=cs[0].get_paths() + cs=plt.contourf(lons,lats,mask,[0.9,1.1]) + conts=cs.get_paths() if return_largest: conts.sort(key=lambda x:len(x.vertices)) #cont=conts[-1].vertices