silx
silx copied to clipboard
Draft: silx view: add a first way to handle linux style shell character as w…
trafficstars
related to https://github.com/silx-kit/silx/issues/3577
TODO
- [x] prototype to handle simple use cases
- [ ] check file management into more details. This use case was not really expected (having several item related to the same file). I guess this could mess up will the file management (and bring serious issues with HDF5 files). Might let the file open or stop working when we remove an item. I guess we would need some kind of a counter on top of the existing system. Not sure how complicated it can become.
- [ ] see ways to handle
data_sliceFor now handles simple uses cases as: - improve management of
Viewer.appendFileto handle DataUrl directly. Avoid some translation fromDataUrltostr. - improve wild card on the file path. For now uses glob. Might be better to use fnmatch for all. But seems less direct and might require creation of another function calling
os.listdir? - handle slice. Today item are created but I guess when we provide slices we would like to have it automatically "selected" and displayed ? Behavior to be discussed.
clear; silx view 5.06_crayon_W150_60_Al2_W0.25_xc1000_.nx::entry/data/image*
clear; silx view 5.06_crayon_W150_60_Al2_W0.25_xc1000_.nx::entry/*
clear; silx view 5.06_crayon_W150_60_Al2_W0.25_xc*_.nx
clear; silx view 5.06_crayon_W150_60_Al2_W0.25_xc*_.nx::entry/* # !!! fails on closing
PR #3663 improves support for * in filename and adds support for * in data path.
Adding support for slicing seems more complicated since the model manages groups and datasets... so not sure what would be the best approach to support it.
PR #3677 adds support for slicing
All has been done in other PR thank to @t20100 . We can close this PR