Reject an already-tried conformer change across all rotors of a species, not only the current one

Aperta
#1,138 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start with troubleshoot_scan_job and the species rotor history in species_dict[label].rotors_dict; the issue identifies the current-rotor-only lookup that causes the bug. Locate the pentane rotor-scan tests, then add coverage for a geometry rejected through rotor 1 being rejected through rotor 2 and for the A → B → A case. Done means conformer-change methods and pre_xyz are checked across all relevant rotor histories, with both scenarios passing.

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

Descrizione

Found by @estyritov1 in the #1110 review (https://github.com/ReactionMechanismGenerator/ARC/pull/1110#discussion_r4727813049). It predates #1110.

What happens. When a rotor scan asks for a conformer change, troubleshoot_scan_job rejects a geometry already tried, but it reads only the current rotor's history:

used_trsh_methods = self.species_dict[label].rotors_dict[job.rotor_index]['trsh_methods']

A conformer change affects the whole species, and #1110 already counts change_index over all rotors. So a geometry rejected through rotor 1 is accepted through rotor 2 and triggers a new opt and rescans. estyritov1 reproduced this with pentane (rotors [1, 2, 3, 4] and [2, 3, 4, 5]). The original geometry (pre_xyz) is not in the check either, so A → B → A also passes.

Impact. Each rotor is bounded by max_rotor_trsh, so there is no endless loop, only extra re-optimizations and rescans.

Proposed fix. Collect the history across all rotors and add pre_xyz:

used = [m for rotor in self.species_dict[label].rotors_dict.values()
        for m in rotor['trsh_methods'] if 'change conformer' in m]

Test: the pentane case, where a geometry rejected through rotor 1 is also rejected through rotor 2, and the A → B → A case.

After v2.0.0 (outside the freeze cut).

Lingua principale
Python
Stelle
55
Fork
26
Merge medio
3g 3h
PR unite (30g)
8

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/ARC

Tutte le issue di ReactionMechanismGenerator/ARC

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.