Skip to content
Snippets Groups Projects
Commit 7ed35139 authored by Hahn, Steven's avatar Hahn, Steven
Browse files

Merge pull request #14987 from mantidproject/14984_DSFinterp1DFit_initialize_ParameterValues

Refs #14984 Initialize ParameterValues if empty string
parents bc298c74 e5e97c78
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,8 @@ import numpy
import scipy.interpolate
#pylint: disable=too-many-instance-attributes
class DSFinterp1DFit(IFunction1D):
_RegressionTypes = None
......@@ -89,9 +91,13 @@ class DSFinterp1DFit(IFunction1D):
elif name == 'WorkspaceIndex':
self._WorkspaceIndex = int(value)
elif name == 'ParameterValues':
self._ParameterValues = [ float(f) for f in value.split() ]
self._fmin = min(self._ParameterValues)
self._fmax = max(self._ParameterValues)
self._ParameterValues = []
self._fmin = 0.0
self._fmax = 0.0
if value:
self._ParameterValues = [ float(f) for f in value.split() ]
self._fmin = min(self._ParameterValues)
self._fmax = max(self._ParameterValues)
elif name == 'LocalRegression':
self._LocalRegression = bool(value)
elif name == 'RegressionType':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment