Skip to content

Commit cce286c

Browse files
committed
update seismic imports
1 parent 4d75a28 commit cce286c

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

geoscilabs/seismic/NMOwidget.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
from IPython.display import set_matplotlib_formats
1+
try:
2+
from matplotlib_inline.backend_inline import set_matplotlib_formats
3+
except Exception: # pragma: no cover
4+
try:
5+
# for older IPython versions
6+
from IPython.display import set_matplotlib_formats # type: ignore[attr-defined]
7+
except Exception:
8+
# if we're not in a notebook or nothing available, make it a no-op
9+
def set_matplotlib_formats(*args, **kwargs):
10+
pass
211
import matplotlib
3-
from SimPEG.utils import download, mkvc, sub2ind
12+
from simpeg.utils import download, mkvc, sub2ind
413
import numpy as np
514
import scipy.io
615
from ipywidgets import (

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"scipy>=1.7",
3838
"matplotlib>=3.4",
3939
"ipywidgets",
40-
"SimPEG>=0.15.0",
40+
"simpeg>=0.15.0",
4141
"discretize>=0.7.0",
4242
"empymod>=2.0.0",
4343
"jupyter",

0 commit comments

Comments
 (0)