Commit 7bbde84a authored by Neil Vaytet's avatar Neil Vaytet
Browse files

Merge branch 'catch_import_errors' into 'master'

catch import error for scipy.signal.find_peaks

See merge request !9
parents 54933377 07ba4ea8
......@@ -2,7 +2,12 @@ from __future__ import division, print_function
import numpy as np
from mantid.simpleapi import *
from scipy.ndimage import gaussian_filter1d
from scipy.signal import find_peaks
try:
from scipy.signal import find_peaks
except ImportError:
print("Warning: scipy.signal.find_peaks could not be imported. "
"Some functionality will be missing. "
"Install scipy>=1.1.0 to fix this problem.")
################################################################################
################################################################################
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment