Skip to content

Commit a2a0b59

Browse files
committed
Fix typo and add UUID to temporary chem dump names so that .mzMLs with the same basename but different dirname can be used
1 parent b935151 commit a2a0b59

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

vimms/Evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def from_aligned_boxfile(cls, reader, aligned_file, min_box_ppm=None):
336336
float(inner["RT end"]) * reader.RT_FACTOR,
337337
float(inner["m/z min"]),
338338
float(inner["m/z max"]),
339-
round_digits=None)
339+
round_digits=None
340340
).apply_min_box_ppm(ywidth=min_box_ppm, round_digits=None)
341341
)
342342
else:

vimms/Experiment.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import inspect
77
import multiprocessing
88
import json
9+
import uuid
910

1011
from vimms.Common import POSITIVE, save_obj, load_obj
1112
from vimms.Roi import RoiBuilderParams
@@ -304,7 +305,7 @@ def _gen_chems(fs, ionisation_mode, out_dir, point_noise_threshold, chem_noise_t
304305
generated = cm.sample(None, 2, source_polarity=ionisation_mode)
305306

306307
basename = ".".join(os.path.basename(fs).split(".")[:-1])
307-
ppath = os.path.join(out_dir, f"{basename}_temp.pkl")
308+
ppath = os.path.join(out_dir, f"{basename}_temp_{uuid.uuid4()}.pkl")
308309
ChemSet.dump_chems(generated, ppath)
309310

310311
return ppath

0 commit comments

Comments
 (0)