On the gradient path a .net model ends the whole fit on any simulation failure, where an SBML model scores the same failure as a failed point

未关闭
#1,040 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
57/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
backend, testing

调研方向

Start with pybnf/bngsim_model/net_model.py:1272-1290 and compare the .net exception handling with the SBML path; read #1019 and AGENTS.md for the intended failed simulation behavior. Find the existing backend tests and add coverage for configuration-level refusals, point-dependent refusals, and integrator failures on both backends. Done means configuration-level refusals end the run while point-dependent refusals and integrator failures count as failed points.

由索引模型根据 Issue 内容生成。

描述

bug

When a sensitivity request is set, the .net execute path turns any backend exception other than a timeout into a PybnfError (pybnf/bngsim_model/net_model.py:1272-1290), which ends the fit. The SBML path scores a run-time SensitivityUnsupportedError as a failed point.

Why it matters. Some run-time refusals depend on the parameter values. One example is a parameter exactly on a max() kink, which is where an L-BFGS-B bound projection lands. The same point therefore ends a .net fit but is skipped by an SBML fit. A genuine integrator failure at an extreme point also ends a .net gradient fit, though AGENTS.md treats that as a failed simulation.

#1019's review chose the SBML behaviour on purpose: ending the fit on a run-time refusal stopped fits that recover.

Fix: decide one rule for both backends, and test it on both:

  • a configuration-level refusal ends the run;
  • a point-dependent refusal or integrator failure is a failed point.
主要语言
Python
星标
25
派生
25
平均合并
4 小时 5 分钟
30 天内合并 PR
10

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

lanl/PyBNF 的其他 Issue

查看 lanl/PyBNF 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。