Skip to content

Commit

Permalink
Merge pull request #190 from saalfeldlab/fix-n5-append
Browse files Browse the repository at this point in the history
Change order of sanity check and downsample removal
  • Loading branch information
trautmane authored May 3, 2024
2 parents 6abf300 + e73bd51 commit 2f10d88
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,13 @@ public void run()

} else if (parameters.appendToExisting) {

final Long minZToRender = setupAppendExportN5(parameters,
fullScaleDatasetName,
stackMetaData,
dimensions,
blockSize,
getDataType());

if (fullScaleDatasetName.endsWith("s0")) {
final File parentDir = datasetDir.getParentFile();
final File[] downsampledDirs = parentDir.listFiles(DOWNSAMPLED_DIR_FILTER);
Expand All @@ -349,13 +356,6 @@ public void run()
}
}

final Long minZToRender = setupAppendExportN5(parameters,
fullScaleDatasetName,
stackMetaData,
dimensions,
blockSize,
getDataType());

renderStack(sparkContext,
blockSize,
fullScaleDatasetName,
Expand Down

0 comments on commit 2f10d88

Please sign in to comment.