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

Strip catalog attributes - Optional reconstruction version. #501

Merged
merged 6 commits into from
Jan 17, 2025

Conversation

aulemahal
Copy link
Collaborator

Pull Request Checklist:

What kind of change does this PR introduce?

  • New strip_cat_attrs utility to remove those attributes added by the catalog opening functions.
    • Use this by default in save_to_zarr and save_to_netcdf.
  • In build_path, added possibility to have aggregated folder levels with optional components.
    • Make version optionnal in the non-sim schemas.

Does this PR introduce a breaking change?

  • Yes. Saved files will have a few attributes removed.
  • Yes. build_path will not fail on a reconstruction dataset missing a version.

@RondeauG
Copy link
Collaborator

The failing test is what we discussed the other day with the rechunk function. I haven't done a fix yet, so feel free to do it here if you prefer.

@aulemahal aulemahal merged commit 9925181 into main Jan 17, 2025
17 checks passed
@aulemahal aulemahal deleted the fix-499-500 branch January 17, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants