Skip to content

Commit 7b9a6c0

Browse files
committed
Fixed the match_artifact function
Previously forgot the ulines are now an OrderedDict; now the loop to get uline frequencies is working correctly.
1 parent 1c35393 commit 7b9a6c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyspectools/spectra/analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ def match_artifacts(on_exp, off_exp, thres=0.05, freq_col="Frequency"):
683683
if hasattr(obj, "peaks") is False:
684684
raise Exception("{} has no peaks!".format(obj.__name__))
685685

686-
ufreqs = np.array([uline.frequency for uline in on_exp.ulines])
686+
ufreqs = np.array([uline.frequency for index, uline in on_exp.ulines.items()])
687687
candidates = dict()
688688
for _, row in off_exp.peaks.iterrows():
689689
min_freq = row[freq_col] - thres

0 commit comments

Comments
 (0)