An edition-2 job cannot set ODE solver tolerances for a BNGL model: the model: line refuses rtol:/atol: for .bngl, and the simulations built from experiment: lines never carry them
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- backend, documentation
Hướng nghiên cứu
Start with ADR-0116 and related issues #586 and #969, then trace edition-2 model and experiment handling in pybnf/pset.py and pybnf/bngsim_model/net_model.py. Check the BNG2.pl action path, gradient/sensitivity and ms job types, stochastic methods, and PEtab export. Done means BNGL tolerances are consistently applied or refused as specified, with updated docstrings and docs/config_keys.rst.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
An edition-2 job cannot set the ODE solver's tolerances for a BNGL model. A stiff model, or one whose species span many orders of magnitude, may need tighter tolerances than the defaults to integrate accurately. But every simulation PyBNF builds from an experiment: line for a .bngl model runs at the backend's defaults, whatever the user writes:
- the
model:line'srtol:/atol:fields (ADR-0116, #586) are refused for a.bnglmodel; they apply only to SBML/Antimony models onsbml_backend = bngsim; - the refusal, and the docstrings of
TimeCourseandParamScaninpybnf/pset.py, send BNGL users to the model's ownbegin actionsblock. But a hand-writtensimulate(..., atol=>..., rtol=>...)there was always a separate simulation and never reached the declared experiments. #969 now refuses such lines in edition 2, which removes even that option; - no
experiment:field carries a tolerance.
SBML models have per-model tolerances; BNGL models in edition 2 have none, and nothing tells the user their stiff model is being integrated at the default.
What happens today
- BNG2.pl: the synthesized
simulate/parameter_scanactions carry noatol/rtol. BioNetGen 2.9.3 then usesatol = 1e-8, rtol = 1e-8(Perl2/BNGAction.pm, lines 235–236 and 1968–1969). - bngsim
.netbridge: it passesatol/rtoltoSimulator.runonly when the action carries them (pybnf/bngsim_model/net_model.py, around line 1289). The synthesized actions never do, so bngsim's own defaults apply.
Proposal
- The field: accept
rtol:andatol:on a BNGLmodel:line, with the same syntax and checks as for SBML (ADR-0116). Also acceptspecies_atol:/atol: trackingwhere the bngsim.netpath supports them; otherwise refuse those forms for BNGL. - Where it applies: to every ODE simulation of that model's experiments, on both backends. That covers time courses, steady states, scans (plain and pre-equilibrated), and the pre-equilibration phase itself, including the
equil_t_endfixed-duration phase. - Other job types: check the gradient/sensitivity path and
job_type = ms, and either apply the tolerances there or refuse them there. - Stochastic methods: refuse the fields for a model whose experiments run a stochastic or network-free method (
ssa,nf,rm,pla), where a CVODE tolerance means nothing. - Export: say what the PEtab export does with them. PEtab has no solver-settings table, so it is likely run recipe, dropped the way a per-experiment
method:is. - Docs: update the
TimeCourse/ParamScandocstrings anddocs/config_keys.rst, so they no longer point BNGL users to the actions block.
Related: #969 (edition-2 actions-block rule), #586 / ADR-0116 (per-model tolerances for SBML).
- Ngôn ngữ chính
- Python
- Star
- 25
- Fork
- 25
- Merge trung bình
- 4 giờ 5 phút
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của lanl/PyBNF
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug tech debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug silent-incorrectness
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Quick Installation step 2 installs from the plugin manager, but the plugin isn't published yetĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
gh-sync ship audits cards before writing station done, so every ship reports false STATUS findingsĐang mởharness
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
mruangutai/harness#2455 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
stripthink leaves thinking text in place when the chat template opens the think tag in the promptCó thể đã có người làm @MaiAditya đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
xcorr sizes its bin array from the largest observed m/z, so one out-of-range peak kills the runCó thể đã có người làm @BioGeek đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
instadeepai/winnow#312 ·