Skip to content

Commit d633657

Browse files
committed
comment for the viewIdToOmeMetadata cache
1 parent 1f4fb0e commit d633657

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/net/preibisch/mvrecon/fiji/spimdata/imgloaders/AllenOMEZarrProperties.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ public class AllenOMEZarrProperties implements N5Properties
4646
// mapping of viewIDs to corresponding OME-ZARRs
4747
private final Map< ViewId, OMEZARREntry > viewIdToOmeZarrPath;
4848

49-
// Cache for OME multiscale metadata per setupId so that we can retrieve the appropriate dataset path (e.g., "s0", "s1", "s2" or "0", "1", "2")
49+
// N5Properties.getDatasetPath should require an N5Reader so that the dataset path could always be retrieved correctly (e.g., "s0", "s1", "s2" or "0", "1", "2")
50+
// To work around this problem for now, first time we retrieve the view setup we cache it so that next time
51+
// the dataset path is needed - we use the cached value.
5052
private final Map< ViewId, OmeNgffMultiScaleMetadata > viewIdToOmeMetadata = new HashMap<>();
5153

5254
public AllenOMEZarrProperties(

0 commit comments

Comments
 (0)