mastodon-sc / mastodon

Mastodon – a large-scale tracking and track-editing framework for large, multi-view images.
BSD 2-Clause "Simplified" License
66 stars 20 forks source link

Make TrackMateImporter robust against non integer frame numbers #304

Closed stefanhahmann closed 2 months ago

stefanhahmann commented 2 months ago

This PR aims at making the TrackMateImporter more robust against non pure integer frame numbers.

I received a MaMuT file from a collaborator that contained frame numbers, such as FRAME=0.0, FRAME=1.0, etc. While the decimal digit does not make any sense, it seems to be the case that some MaMuT version are storing them, cf. this snippet from a MaMuT file: grafik

This lead to an exception while importing the MaMuT file into Mastodon: grafik

This PR provides a workaround for this situation.