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
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 42/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
- 领域
- backend, documentation
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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).
- 主要语言
- Python
- 星标
- 25
- 派生
- 25
- 平均合并
- 4 小时 5 分钟
- 30 天内合并 PR
- 10
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
lanl/PyBNF 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug minor
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug tech debt
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug minor
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
bug silent-incorrectness
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
software-mansion-labs/Diplomat#20 ·
维护者通常 1 天内回复
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client area可能已有人在做 @lijy91 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 67/100
libnativeapi/nativeapi#53 · 1 个 reaction ·
维护者通常 1 天内回复
-
View Counts discarded due to field name mismatch可能已有人在做 @rsiva0400 今天认领。 未关闭site-bug triage
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Model version publishes the new UK firm entity as a person可能已有人在做 @vahid-ahmadi 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
PolicyEngine/policyengine.py#764 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
spcl/HPCAgent-Bench#264 ·
维护者通常 1 天内回复