Skip to content

Commit

Permalink
Make TrackMateImporter robust against non integer frame numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhahmann authored Apr 29, 2024
1 parent edb5dc5 commit 47a85a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ private final class Import extends ModelImporter
pos[ 1 ] = Double.parseDouble( spotEl.getAttributeValue( POSITION_Y_FEATURE_NAME ) );
pos[ 2 ] = Double.parseDouble( spotEl.getAttributeValue( POSITION_Z_FEATURE_NAME ) );
final double radius = Double.parseDouble( spotEl.getAttributeValue( RADIUS_FEATURE_NAME ) );
final int frame = Integer.parseInt( spotEl.getAttributeValue( FRAME_FEATURE_NAME ) );
final int frame = ( int ) Double.parseDouble( spotEl.getAttributeValue( FRAME_FEATURE_NAME ) );
final int id = Integer.parseInt( spotEl.getAttributeValue( ID_FEATURE_NAME ) );
final String label = spotEl.getAttributeValue( LABEL_FEATURE_NAME );

Expand Down

0 comments on commit 47a85a4

Please sign in to comment.