Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanPreibisch committed Nov 12, 2024
1 parent 63e7ca9 commit c20f99d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,13 @@ else if ( storageType == StorageFormat.N5 || storageType == StorageFormat.ZARR )
// this is the relative path to the dataset inside the Zarr/N5/HDF5 container, thus using File here seems fine
final String dataset = new File( new File( baseDataset , title ).toString(), datasetExtension ).toString();

// e.g. in Windows this will change it to '\s0'
final String datasetExtensionOS = new File( datasetExtension ).toString();

// setup multi-resolution pyramid
mrInfo = N5ApiTools.setupMultiResolutionPyramid(
driverVolumeWriter,
(level) -> dataset.substring(0, dataset.lastIndexOf( datasetExtension ) ) + "/s" + level,
(level) -> new File( dataset.substring(0, dataset.lastIndexOf( datasetExtensionOS ) ) + "/s" + level ).toString(),
dataType,
bb.dimensionsAsLongArray(),
compression,
Expand Down

0 comments on commit c20f99d

Please sign in to comment.