Skip to content

Commit

Permalink
fix fraction estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanPreibisch committed Jun 18, 2024
1 parent a566bf4 commit 7d6a564
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public static long[] findMinStepSize( final AbstractSpimData< ? > data )

for ( int d = 0; d < minStepSize.length; ++d )
{
if ( Math.abs( lowestResolution[ d ] % 1 ) > 0.001 )
if ( Math.abs( lowestResolution[ d ] % 1 ) > 0.001 && ( 1.0 - Math.abs( lowestResolution[ d ] % 1 ) ) > 0.001 )
if ( !roundMipmapResolutions )
throw new RuntimeException( "Downsampling has a fraction > 0.001, cannot split dataset since it does not seem to be a rounding error." );

Expand Down

0 comments on commit 7d6a564

Please sign in to comment.