saalfeldlab / n5-ij

ImageJ convenience layer for N5
BSD 2-Clause "Simplified" License
15 stars 12 forks source link

Consistency between FIJI GUI and N5IJUtils.load() #67

Open JohnGrime opened 1 year ago

JohnGrime commented 1 year ago

Hi,

When I save an n5 dataset in the FIJI GUI, it asks me to specify a Dataset. Examining the resultant n5 directory shows a subdirectory with this name, under which all the data appears to be saved. So far so good.

However, trying to read the previously saved n5 data via e.g. a BeanScript using N5IJUtils.load() and passing in the same Dataset value used to generate the n5 output doesn't work; you need to append a bunch of stuff ("/c0/s0") to the Dataset value you previously specified in FIJI to get it to load.

E.g.: If I call my Dataset "default" when writing the n5 in FIJI, I have to use "default/c0/s0" as the Dataset value in N5IJUtils.load().

This is very confusing; why are these Dataset values different for writing and reading to/from the same n5 "file"? Can we rely on adding "/c0/s0" to our Dataset values being stable in the future?