Closed mtbc closed 4 years ago
Running origin/master on 8080 and this PR on 9090:
# Test
(demo) /opt/zarr-python $cat fstest.py
#!/usr/bin/env python
import zarr
from zarr.storage import FSStore
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("location")
ns = parser.parse_args()
store = FSStore(ns.location)
group = zarr.group(store=store)
print("groups:", list(group.groups()))
print("arrays:", list(group.arrays()))
# Before
(demo) /opt/zarr-python $./fstest.py http://localhost:8080/idr/zarr/v0.1/1.zarr
groups: []
arrays: []
# After
(demo) /opt/zarr-python $^8080^9090
./fstest.py http://localhost:9090/idr/zarr/v0.1/1.zarr
groups: []
arrays: [('0', <zarr.core.Array '/0' (1, 1, 1, 512, 512) uint8>)]
Various other testings:
http://localhost:9090/idr/zarr/ - Resource not found
http://localhost:9090/idr/zarr/v0.1/ - Resource not found
http://localhost:9090/idr/zarr/v0.1/1.zarr - Resource not found
http://localhost:9090/idr/zarr/v0.1/1.zarr/ - OK, returns:
Directory listing for Image #1
.zattrs <-- +1 shows JSON
.zgroup <-- +1 shows JSON
0/
:+1:
Tagged as 0.1.4
Fixes #13. Try,
to fetch image 1234. (All the downloaded
index.html
can be ignored.)Also can set
omero.ms.zarr.folder.layout=flattened
to try the non-nested layout for chunks.