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

Add test datasets using Zarr files #188

Merged
merged 6 commits into from
Aug 14, 2024

Conversation

ChrisJohnNOAA
Copy link
Contributor

@ChrisJohnNOAA ChrisJohnNOAA commented Aug 7, 2024

Description

This adds test datasets based on Zarr files and tests to verify behavior.

Because zarr "files" are different (they're folders), there is some subtle behavior differences needed to make them work in ERDDAP. This approach requires datasets to include "zarr" in the filename or path regex for the dataset to trigger the behavior differences. It might be simpler for users (though likely much more code and/or more complicated changes) to have a new dataset type(s) that are specific to zarr files.

Type of change

Please delete options that are not relevant.

  • [ X ] New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Checklist before requesting a review

  • [ X ] I have performed a self-review of my code
  • [ X ] My code follows the style guidelines of this project
  • [ X ] I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
    There are new (log) warnings generated when loading the example zarr datasets.
  • [ X ] I have added tests that prove my fix is effective or that my feature works
  • [ X ] New and existing unit tests pass locally with my changes

Improve file path handling to make it easier to run dasdds and generatedatasetsxml during development.

Also fix some atomicInteger interactions that were not properly migrated.

Plan to add tests using these datasets before merge.
@ocefpaf
Copy link

ocefpaf commented Aug 8, 2024

Because zarr "files" are different (they're folders)

Some people store them as zipped zarr files (the same folder but zipped). Not sure if we want to support that in ERDDAP.

@ChrisJohnNOAA
Copy link
Contributor Author

Because zarr "files" are different (they're folders)

Some people store them as zipped zarr files (the same folder but zipped). Not sure if we want to support that in ERDDAP.

I'm looking into this. There are additional changes needed to support zipped zarr files.

@ChrisJohnNOAA
Copy link
Contributor Author

Because zarr "files" are different (they're folders)

Some people store them as zipped zarr files (the same folder but zipped). Not sure if we want to support that in ERDDAP.

I'm looking into this. There are additional changes needed to support zipped zarr files.

I added zipped zarr support.

@ChrisJohnNOAA ChrisJohnNOAA merged commit 6651ccc into ERDDAP:main Aug 14, 2024
@ChrisJohnNOAA ChrisJohnNOAA deleted the zarr_test branch September 30, 2024 18:07
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