From 011b3af52ed97d6fba4d90f89fc4d0aaad8dc5db Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 26 Apr 2024 19:21:19 +0200 Subject: [PATCH] disallow rounded kwarg for gdf frames --- eomaps/eomaps.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eomaps/eomaps.py b/eomaps/eomaps.py index 4b79c32b5..9d48c296a 100644 --- a/eomaps/eomaps.py +++ b/eomaps/eomaps.py @@ -5553,6 +5553,10 @@ def set_frame(self, rounded=0, gdf=None, set_extent=True, **kwargs): self.ax.spines["geo"].update(kwargs) if gdf is not None: + assert ( + rounded == 0 + ), "EOmaps: using rounded > 0 is not supported for gdf frames!" + self._set_gdf_path_boundary(self._handle_gdf(gdf), set_extent=set_extent) elif rounded: @@ -5613,5 +5617,4 @@ def cb(*args, **kwargs): self.BM._before_fetch_bg_actions.append(cb) self.ax._EOmaps_rounded_spine_attached = True - self.redraw("__SPINES__") - self.redraw("__BG__") + self.redraw()