Skip to content

Commit

Permalink
pims_wrapper: fix matplotlib import
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzamuto committed Jun 1, 2022
1 parent 4909655 commit 7423e6e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions zetastitcher/io/pims_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Suppress warnings when importing pims on a machine without display server
# The warnings are due to import matplotlib.pyplot as plt in pim's display.py
import matplotlib as mpl
mpl.use('Agg')
try:
# Suppress warnings when importing pims on a machine without display server
# The warnings are due to import matplotlib.pyplot as plt in pim's display.py
import matplotlib as mpl
mpl.use('Agg')
except ModuleNotFoundError:
pass

from pathlib import Path
from pims import ImageSequence
Expand Down

0 comments on commit 7423e6e

Please sign in to comment.