Skip to content

Commit

Permalink
make pre-commit happy
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelquast committed Dec 1, 2023
1 parent e486572 commit 9adee9a
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 @@ -3478,7 +3478,11 @@ def snapshot(self, *layer, transparent=False, clear=False):
try:
from IPython.display import display

display(Image.fromarray(sn, "RGBA").convert('RGB'), display_id=True, clear=clear)
display(

Check warning on line 3481 in eomaps/eomaps.py

View check run for this annotation

Codecov / codecov/patch

eomaps/eomaps.py#L3481

Added line #L3481 was not covered by tests
Image.fromarray(sn, "RGBA").convert("RGB"),
display_id=True,
clear=clear,
)
except Exception:
_log.exception(
"Unable to display the snapshot... is the script "
Expand Down Expand Up @@ -4093,7 +4097,6 @@ def _init_figure(self, ax=None, plot_crs=None, **kwargs):
# to hide canvas header in jupyter notebooks (default figure label)
self._f.canvas.header_visible = False


# override Figure.savefig with Maps.savefig but keep original
# method accessible via Figure._mpl_orig_savefig
# (this ensures that using the save-buttons in the gui or pressing
Expand Down

0 comments on commit 9adee9a

Please sign in to comment.