`ggap.nc` examples fail w/ downloaded data due to indexing

未关闭
#120 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
python

调研方向

从使用已下载数据集 ggap.nc 的示例以及 Examples 19b 和 19c 的图像比较失败开始。阅读 issue #119 以了解相关的脆弱性背景,然后运行受影响的示例和测试;完成的标准是它们选择预期的数据字段,并且使用已下载的样本能够稳定通过。

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

描述

docs

Since providing download access to the sample datasets used in the examples in #113, and setting the test suite to use those exactly for consistency, I noticed lots of new test failures. Upon investigation, it is only examples that use the ggap.nc dataset which are newly failing, with the cause being that the wrong field is being picked out from the read-in fieldlist - the index used is taking the wrong field now, for some reason (somehow in my local sample data, the fields got in a different order in the list I imagine).

This highlights the brittleness mentioned in #119, and by addressing that Issue, it will fix the failures and make the examples and tests more robust to boot.

Image comparison diff evidence

As examples of corresponding image comparison diff failures, showcasing that each output is generated and seems consistent, but shows the wrong (part of, or set of) data, see below.

Example 19b
Image
Example 19c
Image
主要语言
Python
星标
21
派生
11
平均合并
2 小时 59 分钟
30 天内合并 PR
11

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

NCAS-CMS/cf-plot 的其他 Issue

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

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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