Skip to content

Commit

Permalink
extra debug output for n5-interestpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanPreibisch committed Jul 7, 2023
1 parent e092445 commit ba235e4
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,12 @@ public boolean saveInterestPoints( final boolean forceWrite )
N5Utils.save( locData, n5Writer, locDataset, new int[] { (int)locData.dimension( 0 ), defaultBlockSize }, new GzipCompression() );

n5Writer.close();

IOFunctions.println( "Saved: " + new File( baseDir.getAbsolutePath(), baseN5 ).getAbsolutePath() + ":/" + dataset );
}
catch (IOException e)
{
IOFunctions.println("Couldn't write interestpoints to N5 '" + baseDir + ":/" + dataset + "': " + e );
IOFunctions.println("Couldn't write interestpoints to N5 '" + new File( baseDir.getAbsolutePath(), baseN5 ).getAbsolutePath() + ":/" + dataset + "': " + e );
e.printStackTrace();
return false;
}
Expand Down Expand Up @@ -331,11 +333,14 @@ else if ( x == 1 )
datasetAttributes,
new long[] {0});
*/

IOFunctions.println( "Saved: " + new File( baseDir.getAbsolutePath(), baseN5 ).getAbsolutePath() + ":/" + dataset );

n5Writer.close();
}
catch (IOException e)
{
IOFunctions.println("Couldn't write corresponding interestpoints to N5 '" + baseDir + ":/" + dataset + "': " + e );
IOFunctions.println("Couldn't write corresponding interestpoints to N5 '" + new File( baseDir.getAbsolutePath(), baseN5 ).getAbsolutePath() + ":/" + dataset + "': " + e );
e.printStackTrace();
return false;
}
Expand All @@ -353,7 +358,7 @@ protected boolean loadInterestPoints()

if (!n5.exists(dataset))
{
IOFunctions.println( "InterestPointsN5.loadInterestPoints(): dataset '" + baseDir + ":/" + dataset + "' does not exist, cannot load interestpoints." );
IOFunctions.println( "InterestPointsN5.loadInterestPoints(): dataset '" + new File( baseDir.getAbsolutePath(), baseN5 ).getAbsolutePath() + ":/" + dataset + "' does not exist, cannot load interestpoints." );
return false;
}

Expand Down

0 comments on commit ba235e4

Please sign in to comment.