-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 support for netCDF4.EnumType #8147
Merged
Merged
Changes from 41 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
f1bc33b
ENH: make a light refactoring
4da8938
dirty commit
ab53970
Clean
75e00c7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e1d51e3
wip: fix tests
95e30b2
dirty
a3160c5
clean
59ef686
Remove dict from valid attrs type
d135be2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 8c12e50
Fix encoding
e8f4872
FIX: ordering of flags
f481e1f
FIX: encoding of the same enum twice (or more).
951ea32
DOC: Add note for Enum on to_netcdf
ec3c90a
ENH: Raise explicit error on invalid variable
dcc1254
Merge remote-tracking branch 'xarray-origin/main' into enh/add-enum-s…
55927f1
DOC: Update whats-new
9e9c62c
fix: move enum check
5f1bffc
FIX: unit test for min-all-deps requirements
5189c74
Merge remote-tracking branch 'origin/main' into enh/add-enum-support
2410c2e
ENH: Add enum discovery
4b966ba
ENH: Raise error instead of modifying dataset
9273a1d
Merge remote-tracking branch 'origin/main' into enh/add-enum-support
cbfadad
Merge remote-tracking branch 'origin/main' into enh/add-enum-support
ca043a7
FIX: pop unnecessary encoding
ee3dc00
Add Enum Coder
892b2b6
Merge branch 'main' into enh/add-enum-support
kmuehlbauer 9ab1ad1
DOC: Update what's new
7219b99
FIX: Use EnumMeta instead of EnumType fo py<3.11
2aa119f
ENH: Improve error message
da43a10
Remove unnecessary test
096f021
Update enum Coder
26bb8ce
ENH: Update error handling of decoding
d21d73a
ENH: Avoid encoding enum to CF
81a4bec
ENH: encode netcdf4 enum within dtype
b114ccc
MAINT: Remove CF flag_* encoding
6376a13
Add assertion after roundtrip in enum tests
89a8751
add NativeEnumCoder, adapt tests
kmuehlbauer ac20a40
remove test-file
kmuehlbauer d515e0d
restructure datatype extraction
kmuehlbauer 5c66563
use invalid_netcdf for h5netcdf tests
kmuehlbauer d62ac29
FIX: encoding typing
f834ede
Update xarray/backends/netCDF4_.py
kmuehlbauer 9a3980a
Merge branch 'main' into enh/add-enum-support
kmuehlbauer 2a3103f
Merge branch 'main' into enh/add-enum-support
kmuehlbauer f22046d
Merge branch 'main' into enh/add-enum-support
kmuehlbauer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A TypedDict for encoding and its possible values would be cleaner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICS this is taken care of in in #8520. So if #8520 goes in first, we should change here.