Problems creating CFA variables with `cf.write` from aggregation-promoted field ancillaries
评估
调研方向
在 cf-python 代码库中定位函数 cf.aggregate 的实现,找到标准聚合变量的 nc_get_aggregation_write_status 被设置为 True 的位置,并为场辅助变量添加相同的状态设置。运行该库的聚合测试,验证此修复能解决聚合提升的场辅助变量的写入错误。
由索引模型根据 Issue 内容生成。
描述
When writing as aggregation variables field ancillary constructs that have been created by property-promotion via cf.aggregate we get:
AggregationError: Can't write <CF FieldAncillary: id%table_id(12) > as a CF aggregation variable.
This could be because some fragment values in memory have been changed relative
to those in the fragment datasets, or a Dask rechunking has occured, etc.
This should work, and is a bug relating to the fact that nc_get_aggregation_write_status is False on the field ancillary variables, when it should have been set to True in cf.aggregate
- 主要语言
- Python
- 星标
- 151
- 派生
- 23
- 平均合并
- 1 天 2 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NCAS-CMS/cf-python 的其他 Issue
-
installation
难度 4/5 3-5 天 新手友好度 45/100
-
Attempt at unsupported conservative 3D mesh regridding可能重新可做 @sadielbartholomew 于 29 天前认领,目前没有进行中的 PR。 未关闭bug?
-
bug
难度 3/5 1-2 天 新手友好度 45/100
-
API review (4.0.0) documentation
难度 4/5 3-5 天 新手友好度 48/100
-
enhancement xarray
难度 4/5 3-5 天 新手友好度 48/100
查看 NCAS-CMS/cf-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 86/100
UKGovernmentBEIS/inspect_ai#5802 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
no-human-ai/no_human#660 ·
维护者通常 1 天内回复
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
documentation need help question
难度 1/5 1-3 小时 新手友好度 66/100
phonology024/babelscribe#26 ·
-
bug
难度 2/5 1-3 小时 新手友好度 62/100