Skip to content

Commit

Permalink
disallow rounded kwarg for gdf frames
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelquast committed Apr 26, 2024
1 parent 1f0ac57 commit 011b3af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions eomaps/eomaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (

Check warning on line 5556 in eomaps/eomaps.py

View check run for this annotation

Codecov / codecov/patch

eomaps/eomaps.py#L5556

Added line #L5556 was not covered by tests
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)

Check warning on line 5560 in eomaps/eomaps.py

View check run for this annotation

Codecov / codecov/patch

eomaps/eomaps.py#L5560

Added line #L5560 was not covered by tests

elif rounded:
Expand Down Expand Up @@ -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()

0 comments on commit 011b3af

Please sign in to comment.