saalfeldlab / n5-utils

simple standalone BigDataViewer for multiple N5 (or HDF5) datasets
Other
8 stars 16 forks source link

n5-equals handles non existent files/datasets inconsistently #10

Open neptunes5thmoon opened 5 years ago

neptunes5thmoon commented 5 years ago

For non existent datasets in hdf5 files n5-equals throws HDF5SymbolTableException. If the file itself doesn't exist the ouput is false. For n5 files the comparison evaluates to false if one or both of the files/datasets doesn't exist.

The behavior should be consistent for all non-existent files and datasets. I think it would also be desirable to get an output other than false in that case to prevent typos etc.