@@ -185,7 +185,7 @@ def _initialize_table_fit_parameters(self):
185
185
table .addColumn (type = "float" , name = f"{ key } Width" )
186
186
table .addColumn (type = "float" , name = f"{ key } Center " )
187
187
table .addColumn (type = "float" , name = "Normalised Chi2" )
188
- table .addColumn (type = "float" , name = "Number of Iteraions " )
188
+ table .addColumn (type = "float" , name = "Number of Iterations " )
189
189
return table
190
190
191
191
@@ -235,7 +235,7 @@ def _set_up_kinematic_arrays(self):
235
235
236
236
def run (self ):
237
237
238
- assert len (self .profiles ) > 0 , "Add profiles before atempting to run the routine!"
238
+ assert len (self .profiles ) > 0 , "Add profiles before attempting to run the routine!"
239
239
240
240
self ._create_table_initial_parameters ()
241
241
@@ -318,7 +318,7 @@ def _fit_neutron_compton_profiles(self):
318
318
Performs the fit of neutron compton profiles to the workspace being fit.
319
319
The profiles are fit on a spectrum by spectrum basis.
320
320
"""
321
- print ("\n Fitting Neutron Compron Prolfiles:\n " )
321
+ print ("\n Fitting Neutron Compton Prolfiles:\n " )
322
322
323
323
self ._row_being_fit = 0
324
324
while self ._row_being_fit != len (self ._dataY ):
@@ -402,7 +402,7 @@ def calculateKinematicsArrays(self, instrPars):
402
402
403
403
404
404
def convertDataXToYSpacesForEachMass (self , dataX , delta_Q , delta_E ):
405
- "Calculates y spaces from TOF data, each row corresponds to one mass"
405
+ """" Calculates y spaces from TOF data, each row corresponds to one mass"" "
406
406
407
407
# Prepare arrays to broadcast
408
408
dataX = dataX [np .newaxis , :, :]
@@ -570,10 +570,10 @@ def filterWidthsAndIntensities(self, widthsIn, intensitiesIn):
570
570
assert not (np .all (np .isnan (betterIntensities ))), "All filtered intensities are nan"
571
571
assert np .nanmax (betterWidths ) != np .nanmin (
572
572
betterWidths
573
- ), f"All fitered widths have the same value: { np .nanmin (betterWidths )} "
573
+ ), f"All filtered widths have the same value: { np .nanmin (betterWidths )} "
574
574
assert np .nanmax (betterIntensities ) != np .nanmin (
575
575
betterIntensities
576
- ), f"All fitered widths have the same value: { np .nanmin (betterIntensities )} "
576
+ ), f"All filtered intensities have the same value: { np .nanmin (betterIntensities )} "
577
577
578
578
return betterWidths , betterIntensities
579
579
@@ -644,7 +644,7 @@ def errorFunction(self, pars):
644
644
645
645
def _neutron_compton_profiles (self , pars ):
646
646
"""
647
- Neutron Compron Profile distribution on TOF space for a single spectrum.
647
+ Neutron Compton Profile distribution on TOF space for a single spectrum.
648
648
Calculated from kinematics, J(y) and resolution functions.
649
649
"""
650
650
@@ -836,7 +836,7 @@ def _replace_zero_columns_with_ncp_fit(self):
836
836
OutputWorkspace = self ._workspace_for_corrections .name () + "_CorrectionsInput"
837
837
)
838
838
for row in range (self ._workspace_for_corrections .getNumberHistograms ()):
839
- # TODO: Once the option to chage point to hist is removed, remove [:len(ncp)]
839
+ # TODO: Once the option to change point to hist is removed, remove [:len(ncp)]
840
840
self ._workspace_for_corrections .dataY (row )[self ._zero_columns_boolean_mask ] = ncp [row , self ._zero_columns_boolean_mask [:len (ncp [row ])]]
841
841
842
842
SumSpectra (
@@ -919,7 +919,7 @@ def createSlabGeometry(self, wsNCPM):
919
919
def calcMSCorrectionSampleProperties (self , meanWidths , meanIntensityRatios ):
920
920
masses = [p .mass for p in self ._profiles .values ()]
921
921
922
- # If Backsscattering mode and H is present in the sample, add H to MS properties
922
+ # If Backscattering mode and H is present in the sample, add H to MS properties
923
923
if self ._mode_running == "BACKWARD" :
924
924
if self ._h_ratio is not None : # If H is present, ratio is a number
925
925
masses = np .append (masses , 1.0079 )
0 commit comments