Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new chunks header format #25

Merged
merged 2 commits into from
Feb 2, 2023
Merged

Use new chunks header format #25

merged 2 commits into from
Feb 2, 2023

Conversation

katamartin
Copy link
Member

chunks: time=6443, analysed_sst=30,100,100, analysis_error=30,100,100, mask=30,100,100, sea_ice_fraction=30,100,100

@vercel
Copy link

vercel bot commented Feb 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
data-viewer ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 2, 2023 at 0:06AM (UTC)

@andersy005
Copy link
Member

chunks: time=6443, analysed_sst=30,100,100, analysis_error=30,100,100, mask=30,100,100, sea_ice_fraction=30,100,100

can confirm headers parsing works in zarr-proxy

In [1]: from zarr_proxy.logic import parse_chunks_header

In [2]: chunks='time=6443, analysed_sst=30,100,100, analysis_error=30,100,100, mask=30,100,100, sea_ice_fraction=30,100,100'

In [3]: parse_chunks_header(chunks)
Out[3]: 
{'time': (6443,),
 'sst': (30, 100, 100),
 'error': (30, 100, 100),
 'mask': (30, 100, 100),
 'fraction': (30, 100, 100)}

Copy link
Member

@andersy005 andersy005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽 Looks good

@katamartin katamartin merged commit eca0636 into main Feb 2, 2023
@katamartin katamartin deleted the katamartin/new-headers branch February 2, 2023 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants