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

Abierto Apto para principiantes
#267 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
66/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
data

Línea de trabajo

Empieza en src/pineko/evolve.py alrededor de la línea 79, donde se almacena el hash de la grid, y rastrea cómo la ruta de la grid y la carpeta theory llegan hasta ese punto para poder localizar un archivo de hash .txt hermano. Lee la función circundante y las pruebas existentes en tests/ antes de añadir la comparación. Hecho significa que un hash almacenado que no coincida o falte lanza un error claro en lugar de un crash confuso más abajo, mientras que un hash coincidente continúa como antes.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
2
Forks
0
Merge medio
10 d 34 min
PR fusionados (30 d)
3

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de NNPDF/pineko

Todos los issues de NNPDF/pineko

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.