Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Problems creating CFA variables with `cf.write` from aggregation-promoted field ancillaries

已关闭 适合新手
#971 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@davidhassell 已经在做这个了。

开始于 2026年10月6日。

  • #972 来自 @davidhassell —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
75/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
backend

调研方向

在 cf-python 代码库中定位函数 cf.aggregate 的实现,找到标准聚合变量的 nc_get_aggregation_write_status 被设置为 True 的位置,并为场辅助变量添加相同的状态设置。运行该库的聚合测试,验证此修复能解决聚合提升的场辅助变量的写入错误。

由索引模型根据 Issue 内容生成。

描述

aggregation bug dataset read dataset write

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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NCAS-CMS/cf-python 的其他 Issue

查看 NCAS-CMS/cf-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。