File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 36
36
# imports with warnings if not present
37
37
try :
38
38
import scipy .io
39
+ except ModuleNotFoundError as e :
40
+ sys .stderr .write ("Warning: missing packages, some functions will throw an exception if called. (%s)\n " % (str (e )))
41
+ try :
39
42
import h5py
40
43
except ModuleNotFoundError as e :
41
44
sys .stderr .write ("Warning: missing packages, some functions will throw an exception if called. (%s)\n " % (str (e )))
Original file line number Diff line number Diff line change 38
38
# imports with warnings if not present
39
39
try :
40
40
import ipywidgets
41
+ except ModuleNotFoundError as e :
42
+ sys .stderr .write ("Warning: missing packages, some functions will throw an exception if called. (%s)\n " % (str (e )))
43
+ try :
41
44
import tkinter .filedialog
45
+ except ModuleNotFoundError as e :
46
+ sys .stderr .write ("Warning: missing packages, some functions will throw an exception if called. (%s)\n " % (str (e )))
47
+ try :
42
48
import IPython .display
43
49
except ModuleNotFoundError as e :
44
50
sys .stderr .write ("Warning: missing packages, some functions will throw an exception if called. (%s)\n " % (str (e )))
You can’t perform that action at this time.
0 commit comments