gzuidhof / zarr.js

Javascript implementation of Zarr
https://guido.io/zarr.js
Apache License 2.0
132 stars 23 forks source link

`getItem` behavior inconsistent between 0.5.1 and 0.5.2 #132

Open ilan-gold opened 1 year ago

ilan-gold commented 1 year ago

It would appear that there was a regression where something like this fetches from the wrong URL i.e https://assets.hubmapconsortium.org/obs/Cell K-Means [Mean-All-SubRegions] Expression/.zarray instead of from https://assets.hubmapconsortium.org/69d9c52bc9edb625b496cecb623ec081/anndata-zarr/reg001_expr-anndata.zarr /obs/Cell K-Means [Mean-All-SubRegions] Expression/.zarray:

import { HTTPStore } from 'zarr';
const url = 'https://assets.hubmapconsortium.org/69d9c52bc9edb625b496cecb623ec081/anndata-zarr/reg001_expr-anndata.zarr'
await store.getItem('obs/Cell K-Means [Mean-All-SubRegions] Expression/.zarray')

Does this sound possible? My guess is that #99 caused the base url to be completely stripped.