Records and messages identify a path reaction by a label that is not unique
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 16
- フォーク
- 8
- 平均マージ
- 1時間 46分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ReactionMechanismGenerator/T3 のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
ReactionMechanismGenerator/T3#233 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 53/100
ReactionMechanismGenerator/T3#239 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ReactionMechanismGenerator/T3#238 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
ReactionMechanismGenerator/T3#237 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
ReactionMechanismGenerator/T3#235 ·
ReactionMechanismGenerator/T3 の issue をすべて見る
似ている issue
-
docs(contributing): the two things that silently block a PR対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンavailable documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 95/100
Nixitov/Riptide-Native#944 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
JTHCode/secretguard#24 ·
メンテナーはふだん 1 日以内に返信
-
area: middleware documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
omarelshamy25x/shamy-hijri#63 ·
メンテナーはふだん 1 日以内に返信