silx icon indicating copy to clipboard operation
silx copied to clipboard

[IO] support external data in dictdump ">" links

Open woutdenolf opened this issue 1 year ago • 3 comments

Currently we only support internal and external links:

https://github.com/silx-kit/silx/blob/d8a666dcfab4f071f38615ac495937cf85e97f95/src/silx/io/dictdump.py#L445

A use case has come up (Bliss NeXus writer) where an EDF should be linked.

woutdenolf avatar Jan 26 '24 16:01 woutdenolf

Do you mean supporting external datasets?

h5py.Group.create_dataset:

  • external – Store the dataset in one or more external, non-HDF5 files. This should be an iterable (such as a list) of tuples of (name, offset, size) to store data from offset to offset + size in the named file. Each name must be a str, bytes, or os.PathLike; each offset and size, an integer. The last file in the sequence may have size h5py.h5f.UNLIMITED to let it grow as needed. If only a name is given instead of an iterable of tuples, it is equivalent to [(name, 0, h5py.h5f.UNLIMITED)].

t20100 avatar Mar 21 '24 12:03 t20100

I don't know by if it can be of any help please be aware that we did some proto for tomography:

  • in edfconvert - see around lines ~1135
  • for tiff: https://gitlab.esrf.fr/tomotools/scripts/-/blob/master/create_vds_from_tiff.py?ref_type=heads

payno avatar Mar 21 '24 13:03 payno

Do you mean supporting external datasets?

Yes

woutdenolf avatar Mar 21 '24 15:03 woutdenolf