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

Đang mở
#236 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
16
Fork
8
Merge trung bình
1 giờ 46 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ReactionMechanismGenerator/T3

Tất cả issue của ReactionMechanismGenerator/T3

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.