Skip to content
Snippets Groups Projects
Commit b9820623 authored by Anton Piccardo-Selg's avatar Anton Piccardo-Selg
Browse files

Refs #18309 Fix typo

parent 4763ad9e
No related branches found
No related tags found
No related merge requests found
...@@ -150,11 +150,10 @@ class SANSFitShiftScale(DataProcessorAlgorithm): ...@@ -150,11 +150,10 @@ class SANSFitShiftScale(DataProcessorAlgorithm):
y_model = front_data_corrected.dataY(0) y_model = front_data_corrected.dataY(0)
y_data = rear_data_corrected.dataY(0) y_data = rear_data_corrected.dataY(0)
if any([np.isnan(element) for element in y_model]) or any([np.isnan(element) for element in y_data]): if any([np.isnan(element) for element in y_model]) or any([np.isnan(element) for element in y_data]):
raise RuntimeError("Trying to merge two merge the two reduced data sets for HAB and LAB failed. " raise RuntimeError("Trying to merge the two reduced data sets for HAB and LAB failed. "
"You seem to have Nan values in your reduced HAB or LAB data set. This is most likely " "You seem to have Nan values in your reduced HAB or LAB data set. This is most likely "
"caused by a too small Q binning. Try to increase the Q bin width.") "caused by a too small Q binning. Try to increase the Q bin width.")
fit = self.createChildAlgorithm('Fit')
# We currently have to put the front_data into the ADS so that the TabulatedFunction has access to it # We currently have to put the front_data into the ADS so that the TabulatedFunction has access to it
front_data_corrected = AnalysisDataService.addOrReplace('front_data_corrected', front_data_corrected) front_data_corrected = AnalysisDataService.addOrReplace('front_data_corrected', front_data_corrected)
front_in_ads = AnalysisDataService.retrieve('front_data_corrected') front_in_ads = AnalysisDataService.retrieve('front_data_corrected')
...@@ -162,6 +161,7 @@ class SANSFitShiftScale(DataProcessorAlgorithm): ...@@ -162,6 +161,7 @@ class SANSFitShiftScale(DataProcessorAlgorithm):
function = 'name=TabulatedFunction, Workspace="' + str( function = 'name=TabulatedFunction, Workspace="' + str(
front_in_ads.name()) + '"' + ";name=FlatBackground" front_in_ads.name()) + '"' + ";name=FlatBackground"
fit = self.createChildAlgorithm('Fit')
fit.setProperty('Function', function) fit.setProperty('Function', function)
fit.setProperty('InputWorkspace', rear_data_corrected) fit.setProperty('InputWorkspace', rear_data_corrected)
......
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