diff --git a/src/main/java/net/preibisch/mvrecon/fiji/spimdata/interestpoints/InterestPointsN5.java b/src/main/java/net/preibisch/mvrecon/fiji/spimdata/interestpoints/InterestPointsN5.java index 429d169fc..cf51b21d9 100644 --- a/src/main/java/net/preibisch/mvrecon/fiji/spimdata/interestpoints/InterestPointsN5.java +++ b/src/main/java/net/preibisch/mvrecon/fiji/spimdata/interestpoints/InterestPointsN5.java @@ -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; } @@ -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; } @@ -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; }