Closed minnerbe closed 3 months ago
Thanks for reporting this @minnerbe ,
There's a chance this is fixed in the current snapshot version (there's quite a bit of refactoring having to do with input parsing / root path handling), but I'll check and address this if not.
When I test this with the current code, macros are recorded correctly, I expect this issue was fixed by https://github.com/saalfeldlab/n5-ij/commit/b4db01286d0a5c17ad5743297546ced2e41ddb68 Thanks again!
Problem
When opening an N5 dataset with the
Import > HDF5/N5/Zarr/OME-NGFF ...
dialog, it is possible to specify a subfolder of an N5 container rather than the base path. E.g., in the following N5 container, specifyingbase.n5/grp
instead ofbase.n5
to detect the datasetdata
.This is convenient, since dataset detection from the root can take some time if the container contains a large hierarchy.
However, if the crop checkbox is checked, the string which is automatically inserted into the
N5 path
field of the crop dialog duplicates parts of the paths within the N5 container: instead ofbase.n5/grp/data
it isbase.n5/grp/grp/data
whenbase.n5/grp
is used in the import dialog. This leads to the following error:Workaround
Since the string in the crop dialog can be edited, one can simply fix it manually (which is a bit inconvenient since the field is too small to do this efficiently).
Suggested fix
It seems to me that
getN5RootPath()
inui/DatasetSelectorDialog.java
does not return the N5 root path but simply the string in the text field of the import dialog. Returning the actual N5 root there would probably fix the problem.