parameter_scan and bifurcate on the bngsim backend ignore the action's atol=> and rtol=>

Open
#1,037 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
73/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
backend, data

Research direction

Read pybnf/bngsim_model/net_model.py around lines 1754 and 2180–2370 to compare how simulate passes tolerances with the parameter scan path. Trace _run_parameter_scan and _run_scan_point to see where each scan point is integrated. Done means scan actions honor their stated atol and rtol, or refuse those options clearly; verify the behavior for a dose-response scan.

Written by the indexing model from the issue text.

Description

bug silent-incorrectness

On the bngsim backend:

  • simulate passes the action's atol=>/rtol=> to bngsim (pybnf/bngsim_model/net_model.py:1754).
  • The scan path (_run_parameter_scan / _run_scan_point, around net_model.py:2180-2370) never reads them.

So a dose-response written parameter_scan({..., atol=>1e-12}) is integrated at bngsim's default tolerance, with no warning, while the same action's simulate honours it.

Fix: pass the action's tolerances on the scan path, or refuse them there. Each scan point should integrate at the tolerance its action states.

Related but distinct: #971, where edition-2 cannot set solver tolerances for a BNGL model at all.

Found in independent review of #1018.

Dominant language
Python
Stars
25
Forks
25
Avg merge
4h 5m
Merged PRs (30d)
10

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lanl/PyBNF

All issues in lanl/PyBNF

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.