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
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 57/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 25
- Forks
- 25
- Avg merge
- 4h 5m
- Merged PRs (30d)
- 10
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lanl/PyBNF
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug minor
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
bug minor
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug silent-incorrectness
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
software-mansion-labs/Diplomat#20 ·
Maintainers usually reply within 1 day
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
View Counts discarded due to field name mismatchPossibly taken @rsiva0400 claimed this today. Opensite-bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Model version publishes the new UK firm entity as a personPossibly taken @vahid-ahmadi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PolicyEngine/policyengine.py#764 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
spcl/HPCAgent-Bench#264 ·
Maintainers usually reply within 1 day