@@ -27,8 +27,8 @@ def gen_wid_warn_str(freq_res, bwl):
2727
2828 output = '\n ' .join ([
2929 '' ,
30- " FOOOF WARNING: Lower-bound peak width limit is < or ~= the frequency resolution: " + \
31- " {:1.2f} <= {:1.2f}" .format (freq_res , bwl ),
30+ ' FOOOF WARNING: Lower-bound peak width limit is < or ~= the frequency resolution: ' + \
31+ ' {:1.2f} <= {:1.2f}' .format (freq_res , bwl ),
3232 '\t Lower bounds below frequency-resolution have no effect (effective lower bound is freq-res)' ,
3333 '\t Too low a limit may lead to overfitting noise as small bandwidth peaks.' ,
3434 '\t We recommend a lower bound of approximately 2x the frequency resolution.' ,
@@ -57,11 +57,11 @@ def gen_settings_str(f_obj, description=False, concise=False):
5757 """
5858
5959 # Parameter descriptions to print out, if requested
60- desc = {'aperiodic_mode' : 'The aproach taken to fitting the aperiodic component.' ,
61- 'peak_width_limits' : 'Enforced limits for peak widths, in Hz.' ,
60+ desc = {'peak_width_limits' : 'Enforced limits for peak widths, in Hz.' ,
6261 'max_n_peaks' : 'The maximum number of peaks that can be extracted.' ,
63- 'min_peak_amplitude' : "Minimum absolute amplitude of a peak, above aperiodic component." ,
64- 'peak_threshold' : "Threshold at which to stop searching for peaks." }
62+ 'min_peak_amplitude' : 'Minimum absolute amplitude of a peak, above aperiodic component.' ,
63+ 'peak_threshold' : 'Threshold at which to stop searching for peaks.' ,
64+ 'aperiodic_mode' : 'The aproach taken to fitting the aperiodic component.' }
6565
6666 # Clear description for printing if not requested
6767 if not description :
@@ -77,16 +77,16 @@ def gen_settings_str(f_obj, description=False, concise=False):
7777 '' ,
7878
7979 # Settings - include descriptions if requested
80- * [el for el in ['Aperiodic Mode : {}' .format (f_obj .aperiodic_mode ),
81- '{}' .format (desc ['aperiodic_mode' ]),
82- 'Peak Width Limits : {}' .format (f_obj .peak_width_limits ),
80+ * [el for el in ['Peak Width Limits : {}' .format (f_obj .peak_width_limits ),
8381 '{}' .format (desc ['peak_width_limits' ]),
8482 'Max Number of Peaks : {}' .format (f_obj .max_n_peaks ),
8583 '{}' .format (desc ['max_n_peaks' ]),
8684 'Minimum Amplitude : {}' .format (f_obj .min_peak_amplitude ),
8785 '{}' .format (desc ['min_peak_amplitude' ]),
8886 'Amplitude Threshold: {}' .format (f_obj .peak_threshold ),
89- '{}' .format (desc ['peak_threshold' ])] if el != '' ],
87+ '{}' .format (desc ['peak_threshold' ]),
88+ 'Aperiodic Mode : {}' .format (f_obj .aperiodic_mode ),
89+ '{}' .format (desc ['aperiodic_mode' ])] if el != '' ],
9090
9191 # Footer
9292 '' ,
@@ -280,7 +280,7 @@ def gen_issue_str(concise=False):
280280 'If FOOOF gives you any weird / bad fits, please let us know!' ,
281281 'To do so, send us a FOOOF report, and a FOOOF data file, ' ,
282282 '' ,
283- " With a FOOOF object (fm), after fitting, run the following commands:" ,
283+ ' With a FOOOF object (fm), after fitting, run the following commands:' ,
284284 "fm.create_report('FOOOF_bad_fit_report')" ,
285285 "fm.save('FOOOF_bad_fit_data', True, True, True)" ,
286286 '' ,
0 commit comments