More lenient guess_coord_axis() rules?
还没有人认领这个 Issue。
评估
调研方向
Start by reading the guess_coord_axis() implementation and its existing tests, focusing on the current name-matching rules and intentional exclusions described in the issue. This is currently a design discussion: completion requires a maintainer-agreed leniency approach, including how eta and xi should be handled, followed by behavior tests.
由索引模型根据 Issue 内容生成。
描述
Hi. I regularly find myself wishing guess_coord_axis() would find more dimension and coordinate names. I was just adding some to do a PR but I see that some are purposely excluded. For example I would like it to find "lat" when the variable name doesn't start with "lat" but it is just in the name somewhere. I see this was purposefully done because some people must have datasets that use "nlat" as a dimension to count their latitudes but want it to be "Y" not "latitude". Same with lon, time, and Z.
I also would like to add "eta" and "xi" to the guess regex for "Y" and "X" respectively to pick up dimensions in ROMS files. However, perhaps this would cause a problem for some users if they have other variable names with those names in them.
Would it make sense to have a flag for levels of leniency for guesses? Or for whether they have to be at the start of the variable name or not?
I can submit the code I have if this is too abstract to discuss. Thanks.
- 主要语言
- Python
- 星标
- 181
- 派生
- 51
- 平均合并
- 6 小时 39 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
xarray-contrib/cf-xarray 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
xarray-contrib/cf-xarray#623 ·
-
Consider adding opt-in support for circular axes when calling `bounds_to_vertices` (related to #594)未关闭
难度 5/5 一周以上 新手友好度 38/100
xarray-contrib/cf-xarray#596 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 25/100
xarray-contrib/cf-xarray#570 ·
-
难度 4/5 3-5 天 新手友好度 15/100
xarray-contrib/cf-xarray#568 ·
-
难度 3/5 1-2 天 新手友好度 35/100
xarray-contrib/cf-xarray#566 · 2 条评论 ·
查看 xarray-contrib/cf-xarray 的全部 Issue
相似的 Issue
-
python-version
难度 1/5 1 小时以内 新手友好度 88/100
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
bug javascript P2-medium python release:v3.1
难度 2/5 1-3 小时 新手友好度 68/100
adrirubio/claude-deck#546 ·
维护者通常 1 天内回复
-
area: desktop area: website priority: P2 type: feature
难度 2/5 1-3 小时 新手友好度 62/100
appandflow/stim#3411 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1 小时以内 新手友好度 88/100
baptistehamon/lsapy#185 ·
维护者通常 1 天内回复