-
Notifications
You must be signed in to change notification settings - Fork 13
Changes to facilitate CFA in cf-python #255
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
Conversation
Co-authored-by: Sadie L. Bartholomew <sadie.bartholomew@ncas.ac.uk>
Co-authored-by: Sadie L. Bartholomew <sadie.bartholomew@ncas.ac.uk>
Co-authored-by: Sadie L. Bartholomew <sadie.bartholomew@ncas.ac.uk>
sadielbartholomew
left a comment
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.
Just some typos from recent commits to blitz.
sadielbartholomew
left a comment
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 few more from a new commit, before I approve the PR overall!
sadielbartholomew
left a comment
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.
Thanks for addressing all of my feedback. I've done a quick sanity check that everything still functions as it should after the new commits, with the full cfdm test suite still passing locally. I think black formatting requires one trivial change to be satisfied, namely:
diff --git a/cfdm/read_write/netcdf/netcdfread.py b/cfdm/read_write/netcdf/netcdfread.py
index c1ea1a78f..8817ccbba 100644
--- a/cfdm/read_write/netcdf/netcdfread.py
+++ b/cfdm/read_write/netcdf/netcdfread.py
@@ -5474,7 +5474,6 @@ class NetCDFRead(IORead):
"calendar"
)
-
# Store the missing value indicators
missing_values = {}
for attr in (and there's my two new typo fixes to include, but once those minor changes are made I am happy, so please make those and then merge!
|
Great, thanks Sadie. Typos merges and blank line removed. Merging ... |
As discussed off-line, these changes facilitate CFA in cf-python, implemented in NCAS-CMS/cf-python#630, but do not change the API or functionality of cfdm.
Edit 2023-04-17: Notes on changes:
varidin favour ofaddress; updatedopenmethod (that allows for multiple files); new "groups" API._._customize_auxiliary_coordinatesand_customize_field_ancillariesmethods for use by cf-python; Accounted for NetCDFArray API changes._customize_createVariable(needed by cf-python); Generally passing round more info so that cf-python can pick up on it.