Read-only runcards objects

Aperta
#205 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

The remaining task is to make the runcards dataclasses frozen; the issue does not name their source files or tests. Start by locating the runcards dataclasses and checking how they are constructed and mutated, including dictionary loading with leading _ keys. Done means the dataclasses are frozen and the existing runcard tests pass.

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

Descrizione

output refactor

Runcards objects should mirror exactly the user input.

E.g. Rotations in OperatorCards contains a lot of members that should never be set by the user, and are only modified later on. This should definitely fit somewhere else.

Let's review this objects as soon as possible. They should also not be loaded from dictionaries containing leading _ keys.

@andreab1997 provide your feedback about the new runcards.

  • drop Rotations (just keep xgrid top-level) - done in #292
  • make the dataclasses frozen=True (avoid mutating them)
Lingua principale
Python
Stelle
13
Fork
9
Merge medio
6g 16h
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/eko

Tutte le issue di NNPDF/eko

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.