Records and messages identify a path reaction by a label that is not unique

Aperta
#236 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start by tracing how channel identifiers are parsed and then carried into records and messages. The issue points to SkippedChannel.label, barrierless.py, distrust.py, selector.py:1496, and pes_qm.py:474; inspect those paths and the cited duplicate network fixtures. Done means records and messages can distinguish channels with duplicate path-reaction labels, and the parser refuses duplicates indistinguishable by both labels or missing a transition state.

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

Descrizione

T3 records and messages identify a path reaction in an explored pressure-dependent network by its
reaction<N> label. That label is not unique, and was never meant to be.

Measured

RMG mints the label positionally and only when it is absent —
arkane/pdep.py:665-666, in PressureDependenceJob.save_input_file:

if not rxn.label:
    rxn.label = 'reaction{0:d}'.format(i + 1)

It checks that the label is empty. It never checks that it is unique. The network file is re-saved on
every network update (rmgpy/rmg/pdep.py:875-876), each reaction keeps whatever label it received in
an earlier save, and reactions are added and removed between saves — so positions shift and a newly
unlabelled reaction can be minted a label an older reaction already holds. The explorer copies the
file through unchanged (arkane/explorer.py:288-289), so the collision is already present in RMG's
own pdep output.

Duplicates are routine, not exceptional: 4 of 6 retained explorer final networks carry them, and
so do two committed fixtures — tests/data/pdep_network/iteration_1/RMG/pdep/network4_2.py (repeats
reaction1, reaction2, reaction3, reaction5) and
tests/data/pdep_barrierless_real/network0_full_cho2.py (repeats reaction1, reaction3,
reaction4).

What is and is not affected

Not affected: channel selection and classification. Those look a channel up by its
transition-state label, which is unique within a network. So this does not attach a verdict to
the wrong channel.

Affected: every record and message that names a channel by the path-reaction label —
SkippedChannel.label, the reason strings built in barrierless.py and distrust.py,
selector.py:1496, and pes_qm.py:474. A reader of one of those records cannot tell which of two
channels it refers to, and two different channels can produce records that read identically.

What this asks for

Identify a channel in records and messages by something unique — the transition-state label is
already unique within a network and is already parsed — either in place of the path-reaction label or
alongside it. The path-reaction label can stay for continuity with the network file; it should not be
the only identifier a record carries.

Separately, a duplicate that collides on both the label and the transition-state label (or where
a transition state is missing) is genuinely indistinguishable, and that case is being made a loud
refusal at the parser rather than a silent pass.

Non-goals

No change to the chemistry, to any rate or energy, to which channels are explored or selected, and
nothing upstream — the minting behaviour is RMG's and is not proposed for change here.

Lingua principale
Python
Stelle
16
Fork
8
Merge medio
1h 46m
PR unite (30g)
1

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 ReactionMechanismGenerator/T3

Tutte le issue di ReactionMechanismGenerator/T3

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.