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

オープン
#1,138 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Python
スター
55
フォーク
26
平均マージ
3日 3時間
マージ済み PR(30日)
8

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ReactionMechanismGenerator/ARC のほかの issue

ReactionMechanismGenerator/ARC の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。