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

オープン 初心者向け
#267 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NNPDF/pineko のほかの issue

NNPDF/pineko の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。