Skip to content

Conversation

@Lilferrit
Copy link

@Lilferrit Lilferrit commented Oct 31, 2025

As kindly pointed out in #13, the code responsible for generating the spectrum index -> (file, file_index) lookup table behaves incorrectly if more than one file is used in a SpectrumDataset, since the original code would only index spectra up to the number of spectra in the last file in the dataset, because of the incorrect usage of offsets over self._file_offsets.

There was an additional off by one error caused by adding two 0's to the beginning of the offset array instead of just one.

@Lilferrit Lilferrit linked an issue Oct 31, 2025 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

Potential bug in _reindex

2 participants