Skip to content

Commit

Permalink
Small fix to create the log file if it doesn't already exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanCSmith committed Oct 7, 2024
1 parent 84d7c50 commit 1ff8918
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,7 @@ public void handleFutureComplete(Future<CommandModule> future, boolean isPreview
this.fibreImage = (ImagePlus) output.getOutput("maskImage");
this.micRadioButton.setEnabled(true);
this.micImage = (ImagePlus) output.getOutput("gapImage");
this.fibreRadioButton.setState(true);
this.handleFibreButtonPressed();
}

Expand Down Expand Up @@ -1019,7 +1020,7 @@ private void generateSummaries() {
Path successLog = Paths.get(this.outputDirectory, "success.log");
boolean doHeader = true;

try (BufferedWriter successWriter = Files.newBufferedWriter(successLog, StandardOpenOption.APPEND)) {
try (BufferedWriter successWriter = Files.newBufferedWriter(successLog, StandardOpenOption.CREATE_NEW)) {
for (CommandModule output : this.finishedFutures) {
// Gather our basic info
String filePrefix = (String) output.getInput("filePrefix");
Expand Down

0 comments on commit 1ff8918

Please sign in to comment.