pymzml / pymzML

pymzML - an interface between Python and mzML Mass spectrometry Files
https://pymzml.readthedocs.io/en/latest/
MIT License
160 stars 91 forks source link

Spectrum.scan_time_in_minutes() can be wrong #231

Closed leonweber closed 4 years ago

leonweber commented 4 years ago

Spectrum.scan_time_in_minutes() produces wrong values if called multiple times

specs[0].scan_time_in_minutes()
Out[2]: 5.4814814814814815e-06
specs[0].scan_time_in_minutes()
9.135802469135803e-08

This is probably because the casting (e.g. from seconds to minute) is applied repeatedly.

MKoesters commented 4 years ago

Hi,

thanks for reporting this! I fixed the issue and we will upload a new release during this week

Best, Manuel