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

Aperta
#1,037 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
73/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend, data

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
25
Fork
25
Merge medio
4h 5m
PR unite (30g)
10

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lanl/PyBNF

Tutte le issue di lanl/PyBNF

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.