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

Abierto
#1,138 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
72/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python
Área
backend

Línea de trabajo

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.

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

Descripción

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).

Lenguaje dominante
Python
Estrellas
55
Forks
26
Merge medio
3 d 3 h
PR fusionados (30 d)
8

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

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

Todos los issues de ReactionMechanismGenerator/ARC

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.