Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with building offset_dict #375

Open
michaelmarty opened this issue Jan 31, 2025 · 0 comments
Open

Bug with building offset_dict #375

michaelmarty opened this issue Jan 31, 2025 · 0 comments

Comments

@michaelmarty
Copy link

Describe the bug

With a particular mzML file that someone shared with me, the offset_dict is not built correctly the first time. When I run:

msrun = pymzml.run.Reader(test)
msrun[0]

it gives "KeyError: 0". But, if I run:

msrun = pymzml.run.Reader(test)
msrun[1]
msrun[0]

all is good. It seems to only happen when calling msrun[0]. Other data that is not zero indexed is fine. The file was converted from MGF and is uploaded here.

exportMGF_10spectra.zip

Any idea how to fix this?

To Reproduce
See above.

Desktop (please complete the following information):

  • OS: Windows
  • Version: 2.5.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant