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

Aperta Adatta ai principianti
#267 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
66/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
data

Direzione di ricerca

Parti da src/pineko/evolve.py intorno alla riga 79, dove viene memorizzato l'hash della grid, e traccia come il percorso della grid e la cartella theory arrivano a quel punto, così da poter individuare un file di hash .txt adiacente. Leggi la funzione circostante e i test esistenti sotto tests/ prima di aggiungere il confronto. Fatto significa che un hash memorizzato mancante o non corrispondente solleva un errore chiaro invece di un crash confuso a valle, mentre un hash corrispondente procede come prima.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
2
Fork
0
Merge medio
10g 34m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NNPDF/pineko

Tutte le issue di NNPDF/pineko

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.