Skip to content

Commit

Permalink
Prevent silx warning about mpl already imported
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre committed Apr 27, 2018
1 parent 69d9316 commit 3ce3747
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions PyMca5/PyMcaGui/pymca/QStackWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@
QString = qt.QString
else:
QString = qt.safe_str
try:
# try to import silx prior to importing matplotlib
# to prevent unnecessary warning
import silx.gui.plot
except:
pass

from PyMca5.PyMcaGui import PyMcaFileDialogs
from PyMca5.PyMcaCore import DataObject
Expand Down

0 comments on commit 3ce3747

Please sign in to comment.