should cf-xarray change the meaning of .keys?
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Review the change introduced by #104 alongside xarray Dataset.keys behavior. Decide whether .cf.keys() should retain its current special-key behavior or be renamed/redefined, and document the chosen API semantics before implementation.
Written by the indexing model from the issue text.
Description
After merging #104, I remembered that xarray Datasets have .keys method which returns a list of variable names in Dataset.data_vars.
#104 added .cf.keys that replaced .cf.get_valid_keys (i.e. .cf.keys returns a List of valid "special keys"). This changes cf_xarray's usual position of not changing the "meaning" of any existing xarray method.
I am unsure of whether we actually want to do this.
- Something like
.cf.get_valid_keys()is useful, I think; though it may be less useful now that we have.cf.axesand friends. Is there a better name for this function? - Should
.cf.keys()instead return a list of "special keys" inds.data_vars? I don't know if this is that useful either...
Thoughts?
- Dominant language
- Python
- Stars
- 181
- Forks
- 49
- Avg merge
- 43m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from xarray-contrib/cf-xarray
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
xarray-contrib/cf-xarray#623 ·
-
Consider adding opt-in support for circular axes when calling `bounds_to_vertices` (related to #594) Open
Difficulty 5/5 Over a week Newbie friendliness 38/100
xarray-contrib/cf-xarray#596 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
xarray-contrib/cf-xarray#570 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
xarray-contrib/cf-xarray#568 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
xarray-contrib/cf-xarray#566 · 2 comments ·
All issues in xarray-contrib/cf-xarray
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
OpenHands/extensions#626 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
CSCfi/sd-search-api#39 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
StevenBlack/hosts#3255 ·