INNER CODE UNIT · Python
__next__
pymzml/pymzML · pymzml/run.py:141
def __next__(self):
"""
Iterator for the class :py:class:`Run`.
Iterates all of the spectra in the file.
Returns:
Spectrum (:py:class:`Spectrum`): a spectrum object with interface
to the original spectrum element.
Example:
>>> for spectrum in Reader:
... print(spectrum.mz, end='\\r')
"""
has_ref_group = self.info.get("referenceable_param_group_list", False)
while True: