@@ -816,7 +816,7 @@ def _fit_peaks(self, flat_iter):
816816 max_ind = np .argmax (flat_iter )
817817 max_height = flat_iter [max_ind ]
818818
819- # Stop searching for peaks peaks once drops below height threshold
819+ # Stop searching for peaks once height drops below height threshold
820820 if max_height <= self .peak_threshold * np .std (flat_iter ):
821821 break
822822
@@ -1033,7 +1033,7 @@ def _drop_peak_overlap(self, guess):
10331033 guess = sorted (guess , key = lambda x : float (x [0 ]))
10341034
10351035 # Calculate standard deviation bounds for checking amount of overlap
1036- bounds = [[peak [0 ] - peak [2 ] * self ._gauss_overlap_thresh , peak [ 0 ],
1036+ bounds = [[peak [0 ] - peak [2 ] * self ._gauss_overlap_thresh ,
10371037 peak [0 ] + peak [2 ] * self ._gauss_overlap_thresh ] for peak in guess ]
10381038
10391039 # Loop through peak bounds, comparing current bound to that of next peak
@@ -1164,7 +1164,7 @@ def _prepare_data(freqs, power_spectrum, freq_range, spectra_dim=1, verbose=True
11641164 freqs , power_spectrum = trim_spectrum (freqs , power_spectrum , freq_range )
11651165
11661166 # Check if freqs start at 0 and move up one value if so
1167- # Aperiodic fit gets an inf is freq of 0 is included, which leads to an error
1167+ # Aperiodic fit gets an inf if freq of 0 is included, which leads to an error
11681168 if freqs [0 ] == 0.0 :
11691169 freqs , power_spectrum = trim_spectrum (freqs , power_spectrum , [freqs [1 ], freqs .max ()])
11701170 if verbose :
0 commit comments