@@ -163,7 +163,7 @@ def _setup(self):
163
163
164
164
self ._profiles_table = self .getProperty ("InputProfiles" ).value
165
165
166
- # Need to transform profiles table into parameter array for minimize
166
+ # Need to transform profiles table into parameter array for optimize. minimize()
167
167
self ._initial_fit_parameters = []
168
168
for intensity , width , center in zip (
169
169
self ._profiles_table .column ("intensity" ),
@@ -225,11 +225,11 @@ def _initialize_table_fit_parameters(self):
225
225
table .setTitle ("SciPy Fit Parameters" )
226
226
table .addColumn (type = "float" , name = "Spectrum" )
227
227
for label in self ._profiles_table .column ("label" ):
228
- table .addColumn (type = "float" , name = f"{ label } Intensity " )
229
- table .addColumn (type = "float" , name = f"{ label } Width " )
230
- table .addColumn (type = "float" , name = f"{ label } Center " )
231
- table .addColumn (type = "float" , name = "Normalised Chi2 " )
232
- table .addColumn (type = "float" , name = "Number of Iterations " )
228
+ table .addColumn (type = "float" , name = f"{ label } intensity " )
229
+ table .addColumn (type = "float" , name = f"{ label } width " )
230
+ table .addColumn (type = "float" , name = f"{ label } center " )
231
+ table .addColumn (type = "float" , name = "normalised chi2 " )
232
+ table .addColumn (type = "float" , name = "no of iterations " )
233
233
return table
234
234
235
235
@@ -460,8 +460,8 @@ def _set_means_and_std(self):
460
460
widths = np .zeros ((self ._profiles_table .rowCount (), fitParsTable .rowCount ()))
461
461
intensities = np .zeros (widths .shape )
462
462
for i , label in enumerate (self ._profiles_table .column ("label" )):
463
- widths [i ] = fitParsTable .column (f"{ label } Width " )
464
- intensities [i ] = fitParsTable .column (f"{ label } Intensity " )
463
+ widths [i ] = fitParsTable .column (f"{ label } width " )
464
+ intensities [i ] = fitParsTable .column (f"{ label } intensity " )
465
465
(
466
466
meanWidths ,
467
467
stdWidths ,
0 commit comments