Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Commit

Permalink
Suppress spurious logging when importing Trees directly from files
Browse files Browse the repository at this point in the history
  • Loading branch information
tferr committed Nov 28, 2018
1 parent 09dc075 commit 870063d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/tracing/PathAndFillManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,8 @@ private boolean importNodes(final String descriptor, final TreeSet<SWCPoint> poi
}

if (spacingIsUnset) {
SNT.log("Inferring pixel spacing from imported points... ");
if (!headless)
SNT.log("Inferring pixel spacing from imported points... ");
boundingBox.inferSpacing(points);
x_spacing = boundingBox.xSpacing;
y_spacing = boundingBox.ySpacing;
Expand Down Expand Up @@ -2116,7 +2117,7 @@ protected static int guessTracesFileType(final String filename) {
}

try {
SNT.log("Guessing file type...");
if (!headless) SNT.log("Guessing file type...");
InputStream is;
final byte[] buf = new byte[8];
is = new FileInputStream(filename);
Expand Down

0 comments on commit 870063d

Please sign in to comment.