Skip to content

Commit

Permalink
fix identifying colorbar position from another colorbar instance
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelquast committed Dec 20, 2023
1 parent da22b42 commit 7d18dbc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eomaps/colorbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,10 @@ def __init__(

self._inherit_position = inherit_position

self._parent_cb = self._identify_parent_cb()
if isinstance(self._inherit_position, ColorBar):
self._parent_cb = self._inherit_position

Check warning on line 276 in eomaps/colorbar.py

View check run for this annotation

Codecov / codecov/patch

eomaps/colorbar.py#L276

Added line #L276 was not covered by tests
else:
self._parent_cb = self._identify_parent_cb()

if hist_size is None:
self._hist_size = 0
Expand Down

0 comments on commit 7d18dbc

Please sign in to comment.