Skip to content

Commit

Permalink
todo
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Oct 16, 2024
1 parent fc60e25 commit 3259b27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/depiction/persistence/imzml/imzml_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def imzml_mode(self) -> ImzmlModeEnum:
"""Returns the mode of the imzML file."""
# maybe this can be solved more elegantly in the future, but right now this works (if all offsets are identical,
# then we know it's CONTINUOUS)
# TODO check if this is faster with a generator (benchmark needed)
if len({*self._mz_arr_offsets}) == 1:
return ImzmlModeEnum.CONTINUOUS
else:
Expand Down

0 comments on commit 3259b27

Please sign in to comment.