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 2565083 commit cec6008
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 @@ -5433,6 +5433,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 5436 in eomaps/eomaps.py

View check run for this annotation

Codecov / codecov/patch

eomaps/eomaps.py#L5436

Added line #L5436 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 5440 in eomaps/eomaps.py

View check run for this annotation

Codecov / codecov/patch

eomaps/eomaps.py#L5440

Added line #L5440 was not covered by tests

elif rounded:
Expand Down Expand Up @@ -5493,5 +5497,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 cec6008

Please sign in to comment.