Check that the grid's hash agree with the stored hash (if present)

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

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
66/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
data

调研方向

从 src/pineko/evolve.py 第 79 行附近开始,也就是 grid 哈希被存储的位置,并追踪 grid 路径和 theory 文件夹如何到达那里,以便能够定位同级的 .txt 哈希文件。在添加比较之前,阅读周围的函数和 tests/ 下的现有测试。完成意味着存储的哈希不匹配或缺失时会抛出清晰的错误,而不是下游令人困惑的崩溃,而匹配的哈希则像之前一样继续。

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

描述

most of the time (not always, true) in the same folder where the grid is, there will be a .txt file with the grid hash that was used to upload the grid to the server.

Check that they match before storing the grid hash
https://github.com/NNPDF/pineko/blob/bf7ae6ccd147c89432fdb2a292520b6e07e19bb8/src/pineko/evolve.py#L79
otherwise crash badly.

I just tried to check which grids were used for the ATLASPHT15-ATLASPHT15_Et_1bin... and it says grid_hash: ced13299a56fb1da97065eeaf8507696 but that doesn't exist in theories_slim so no idea what grid was used as input, which is weird, if I run the pineko code manually I get the same hashes that are stored online so either it was a different grid or something went awry.

主要语言
Python
星标
2
派生
0
平均合并
10 天 34 分钟
30 天内合并 PR
3

环境准备

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

从这里开始

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

NNPDF/pineko 的其他 Issue

查看 NNPDF/pineko 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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