Skip to content

Commit 99b6908

Browse files
committed
Add fix for 'empty' scans after filtering (2)
1 parent de4ba98 commit 99b6908

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dimspy/experiment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ def update_metadata_and_labels(peaklists, fl, pl_id=""):
186186
for pl in peaklists:
187187

188188
if pl_id == "":
189-
pl_ID = pl_id
190-
else:
191189
pl_ID = pl.ID
190+
else:
191+
pl_ID = pl_id
192192

193193
if pl_ID not in fl[fl.keys()[0]]:
194194
raise IOError("filelist and peaklist do not match {}".format(pl_ID))

0 commit comments

Comments
 (0)