silx icon indicating copy to clipboard operation
silx copied to clipboard

silx.io.open: Added basic support for tiled URLs

Open t20100 opened this issue 1 year ago • 2 comments

Checklist:


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

t20100 avatar May 03 '24 14:05 t20100

I changed the prefix from tiled: to tiled- to avoid issues with URL parsing) attn @vasole

https://github.com/vasole/pymca/pull/1075 should deal with it

vasole avatar May 05 '24 16:05 vasole

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.

danielballan avatar May 17 '24 16:05 danielballan