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

PR to fix Retro 2.1 zarr headers bug and add zarr S3 endpoint to url list #54

Merged
merged 2 commits into from
May 16, 2024

Conversation

karnesh
Copy link
Collaborator

@karnesh karnesh commented May 15, 2024

This PR removes the bug in the for loop which was looping over Individual characters of url string and updates base url list to include zarr s3 endpoint. This fixes #53 and #37.

@karnesh karnesh changed the title PR to fix Retro 2.1 zarr headers bug PR to fix Retro 2.1 zarr headers bug and add zarr S3 endpoint to url list May 16, 2024
@jameshalgren jameshalgren merged commit 7155e3e into CIROH-UA:main May 16, 2024
Copy link
Member

@jameshalgren jameshalgren left a comment

Choose a reason for hiding this comment

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

@karnesh merging as-is; pushing work on #9 to separate PR.
(note- patch will address version.)

Comment on lines +500 to +502
if "ciroh-nwm-zarr-retrospective-data-copy" in urlbase_prefix:
url = url + ".json"
url = url.replace('.comp', '')
Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to use variables?
retro_url = "ciroh-nwm-zarr-retrospective-data-copy"
native_end = ".comp"
new_end = ".json"

This would potentially dovetail with a fix to this issue:
#9

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.

Retro 2.1 zarr headers bug
2 participants