Commit f570386c authored by Neil Vaytet's avatar Neil Vaytet
Browse files

catch import error

parent 54933377
......@@ -2,7 +2,11 @@ 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")
################################################################################
################################################################################
......
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