silx
silx copied to clipboard
silx.io.open: Added basic support for tiled URLs
Checklist:
- [x] The PR title is formatted as:
<Module or Topic>: <Action> <Summary>(see contributing guidelines)
This PR adds minimal support for tiled in silx.io.open through a silx.io.tiledh5 module.
As it stand, it only supports Container and ArrayClient.
There is a way to limit the number of entries retrieved for each group by setting silx.io.tiledh5.TiledH5.MAX_CHILDREN_PER_GROUP (default: all).
silx.io.open tries to open http(s) URLs with h5pyd and tiled when available and raises an IOError exception when both fail.
Other exceptions when accessing content (timeout, connection errors) are not catched.
There a shortcut in silx.io.open added in first poc when passing an URL with a tiled- prefix that I would prefer to remove now that the basic URL can be used. (Note: since first poc in this branch, I changed the prefix from tiled: to tiled- to avoid issues with URL parsing) attn @vasole
Related to #4106
I changed the prefix from
tiled:totiled-to avoid issues with URL parsing) attn @vasole
https://github.com/vasole/pymca/pull/1075 should deal with it
Hello! I am just writing to provide a heartbeat...we're very interested in this work. We have recently had our time consumed with some urgent operational tasks, and NSLS-II heads back into operations next week. We look forward to digging into this.