job_type = ms silently drops an atol=>/rtol=> that is not a plain number, and no path refuses a negative or non-finite atol
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
Research direction
Read _run_kwargs in pybnf/shooting/net_backend.py and compare its tolerance handling with _eval_numeric in net_model.py:1755; also inspect segment.py:125 for the other path. Add coverage for expression tolerances and negative or non-finite atol values. Done means multiple shooting evaluates tolerances consistently and invalid atol values are rejected with the action named.
Written by the indexing model from the issue text.
Description
Multiple shooting drops a tolerance it cannot parse. In job_type = ms, _run_kwargs (pybnf/shooting/net_backend.py:253-258) calls float() on each tolerance:
for key in ('atol', 'rtol'):
if key in self.sim_params:
try:
kwargs[key] = float(self.sim_params[key])
except (TypeError, ValueError):
pass
The ordinary .net path evaluates the same value with _eval_numeric (net_model.py:1755). So an expression tolerance such as atol=>1e-6/10 is honoured by a fit and silently dropped by multiple shooting, which then integrates at bngsim's default.
No path checks a bad atol. PyBNF does not check a negative or non-finite atol on any path (net_model.py:1755, segment.py:125, net_backend.py). What happens is up to bngsim.
#1018 fixed both of these. It was closed for an unrelated reason (it also wrapped tolerances in ExactAtol, which was not wanted), so the fixes did not land.
Fix: evaluate the tolerance as the ordinary path does, and refuse a value that is not a finite number ≥ 0, naming the action.
- 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