pymzml / pymzML

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

ZeroDivisionError: division by zero #279

Closed YinYingHao closed 2 years ago

YinYingHao commented 3 years ago

Hello, Describe the bug I am using package pymzml but one problem appeared . I am trying to open mzml file with this commands:

run = pymzml.run.Reader("F:\DEC-YYH\0106\DecoSWATH\ms1_data_translate\B-NEG-1.mzML")

But unfortunately I receive this error: image

To Reproduce import pymzml run = pymzml.run.Reader("F:\DEC-YYH\0106\DecoSWATH\ms1_data_translate\B-NEG-1.mzML")

Expected behavior Should be no warning, or warning on first use.

Screenshots image

Desktop (please complete the following information):

StSchulze commented 3 years ago

Hi Yin Yinghao,

Which version of pymzML are you using?

This issue should have been solved by #249 , so maybe try updating your pymzML version, using e.g.: pip install pymzml==2.5.0

Let us know if that helps.

MKoesters commented 2 years ago

Hi Yin Yinghao,

Did this resolve your issue and can we close this PR?

Best, Manuel