ome / omero-ms-zarr

Experimental micro-service for implementing the Zarr spec over HTTP
https://www.openmicroscopy.org/omero
GNU General Public License v2.0
17 stars 12 forks source link

Make microservice configurable. #29

Closed mtbc closed 4 years ago

mtbc commented 4 years ago

Adds microservice configuration properties,

and describes them in the README.

joshmoore commented 4 years ago

On setting the path to match our S3 buckets:

omero.ms.zarr.net.path.image=/idr/zarr/v0.1/{image}.zarr/

this PR allows ome-ms-zarr to masquerade as our other storage backends:

(py36) /opt/ome-zarr-py $ ./ome_zarr http://localhost:8080/idr/zarr/v0.1/51.zarr
root_attrs {'multiscales': [{'datasets': [{'path': '0', 'scale': 1.0}], 'version': '0.1'}]}
resolutions ['0']
resolution 0 shape (t, c, z, y, x) (1, 1, 1, 512, 512) chunks ['1', '1', '1', '512', '512'] dtype uint8
'channels'
[([dask.array<from-zarr, shape=(1, 1, 1, 512, 512), dtype=uint8, chunksize=(1, 1, 1, 512, 512), chunktype=numpy.ndarray>], {'channel_axis': 1})]

:+1: