Silent skips and gaps on the bngsim bridges found while fixing #1051
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
The issue names nf_model.py, net_model.py, parsing.py, pset.py, pybnf/_bngl_expr.py, and pybnf/petab/_bngl_math.py; start with one listed behavior and its corresponding bridge or parser entry point. Check the result against BNG2.pl where specified, and add a refusal test for unsupported inputs. Done means the selected discrepancy is fixed or refused clearly, with a test covering that behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
While fixing #1051, several older problems turned up on the bngsim bridges. Each one lets a model run with an action or value missing, reads something differently from BNG2.pl, or refuses a model that BNG2.pl runs. They are listed here so they can be fixed one at a time. Each needs either a refusal test or a fix checked against BNG2.pl.
Silent skips, where the bridge writes a log message and the run goes on:
nf_model.py,_apply_param_overrides: a parameter that NFsim does not accept is logged at debug level and skipped.net_model.py: asetParameteron a parameter the model lacks is logged as a warning and skipped. The same happens to asetConcentrationin a protocol block, and to anaddConcentrationin the action list or in a protocol.nf_model.py,_nf_set_concentration_action: asetConcentrationthat would lower a count is logged and skipped. The bridge also adds molecules by molecule type only, so a pattern such asA(s~P)may not set the species that the pattern names. This needs checking against BNG2.pl.nf_model.py: an action that the network-free loop has no handler for is skipped at debug level.parsing.py,_parse_action_dict: an item without=>is skipped at debug level.pset.py: the regexes that readmethod,seedandsuffixskip a quoted key. So"method"=>"ssa"does not mark the model as stochastic, and a data file bound to a quoted"suffix"is refused.
Read differently from BNG2.pl:
- BNG2.pl evaluates a quoted
t_endthat names a parameter, such ast_end=>"2*tmax", against the model's parameters. The bridge refuses it. - PyBNF accepts an unquoted parameter name as an action argument, as in
setConcentration("A()", L0). BNG2.pl rejects it ("Bareword not allowed while strict subs in use"). - A
#inside a quoted action argument: PyBNF's load check sees the line cut at the#, and BNG2.pl skips the whole line as unidentified input. t_end=>sqrt 100, a Perl call without parentheses, passes the load check and then fails while running.- bngsim's stop condition (
Simulator.add_stop_condition) evaluates the condition as Python over the observables alone, and passes over a row it cannot evaluate. #1051 refuses such conditions on the bridge, but the defect itself is in lanl/bngsim.
Refused although BNG2.pl runs it:
mratiois missing frompybnf/_bngl_expr.py, so 2 corpus models are refused on the network-free bridge._parse_bngl_param_blockdoes not join backslash continuations, so 7 corpus models are refused on the network-free bridge, with a misleading message.
Duplication:
pybnf/petab/_bngl_math.pycarries a second parser for BNGL arithmetic besidepybnf/_bngl_expr.py. The two could share one grammar.
- Lingua principale
- Python
- Stelle
- 25
- Fork
- 25
- Merge medio
- 4h 5m
- PR unite (30g)
- 10
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di lanl/PyBNF
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
bug minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
bug tech debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
bug silent-incorrectness
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
Quick Installation step 2 installs from the plugin manager, but the plugin isn't published yetAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
I maintainer di solito rispondono entro 6 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
gh-sync ship audits cards before writing station done, so every ship reports false STATUS findingsApertaharness
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
mruangutai/harness#2455 ·
I maintainer di solito rispondono entro 1 giorno
-
stripthink leaves thinking text in place when the chat template opens the think tag in the promptForse già presa @MaiAditya l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
I maintainer di solito rispondono entro 1 giorno
-
xcorr sizes its bin array from the largest observed m/z, so one out-of-range peak kills the runForse già presa @BioGeek l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
instadeepai/winnow#312 ·