A continue=>1 simulate into a new suffix makes BNG2.pl write its .gdat without a header, and PyBNF reads the first data row as the header, so every evaluation on bngl_backend = bionetgen fails
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start with pybnf.data.Data, the loader that takes the first data row as the header when a .gdat file has none, and with the BNG2.pl output path for simulate actions that use continue=>1 and a new suffix. Reproduce with the decay model and actions block in the issue, then check that m_tc.gdat loads with time and Atot columns and keeps all rows. Done when the header is restored from the continued run or the load is refused with the action named.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
When a BNGL simulate with continue=>1 writes to a new suffix, BNG2.pl (2.9.3) writes that suffix's .gdat with no header line and no start row. It treats the file as the continuation of an existing output. PyBNF's loader (pybnf.data.Data) reads such a file by taking its first data row as the column header. The result:
- one row is lost;
- the columns are named by numbers instead of
timeand the observables; - so under
bngl_backend = bionetgen, every evaluation of an experiment scored on that suffix fails.
The run then ends like any job whose simulations fail: "Fitting complete" at an objective of inf, or "Your simulations are failing to run". The cause appears only in the logs (see #995). The bngsim bridge writes a normal output for the same action.
Reproduction
PyBNF main (31ead5f3), BNG2.pl 2.9.3. The model is a decay A() -> 0 (rate 0.1, A() seeded at 1000, Molecules Atot A()), with this actions block:
generate_network({overwrite=>1})
simulate({method=>"ode",t_end=>5,n_steps=>5,suffix=>"eq"})
simulate({method=>"ode",continue=>1,t_end=>10,n_steps=>5,suffix=>"tc"})
BNG2.pl writes m_eq.gdat with a header, and m_tc.gdat without one:
6.000000000000e+00 5.488115943337e+02
7.000000000000e+00 4.965852514474e+02
...
Loading them with PyBNF:
from pybnf.data import Data
Data(file_name='m_eq.gdat').cols # {'time': 0, 'Atot': 1}, 6 rows
Data(file_name='m_tc.gdat').cols # {'6.000000000000e+00': 0, '5.488115943337e+02': 1}, 4 rows (t = 6 lost)
Any data scored on tc then finds no time or Atot column.
Expected
Do one of these:
- When PyBNF reads BNG2.pl output for an action with
continue=>1whose suffix has no earlier output, supply the header of the run it continues (same columns) and keep every row. - Or refuse a
continue=>1into a new suffix underbngl_backend = bionetgenat load, naming the action.
Seen independently in the reviews of #1005 and #1011.
- Lenguaje dominante
- Python
- Estrellas
- 25
- Forks
- 25
- Merge medio
- 4 h 5 min
- PR fusionados (30 d)
- 10
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de lanl/PyBNF
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug minor
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug tech debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
bug minor
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
bug silent-incorrectness
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
Todos los issues de lanl/PyBNF
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
software-mansion-labs/Diplomat#20 ·
Los mantenedores suelen responder en 1 día
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPosiblemente ocupada @lijy91 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
libnativeapi/nativeapi#53 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
View Counts discarded due to field name mismatchPosiblemente ocupada @rsiva0400 la tomó hoy. Abiertosite-bug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Model version publishes the new UK firm entity as a personPosiblemente ocupada @vahid-ahmadi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
PolicyEngine/policyengine.py#764 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
spcl/HPCAgent-Bench#264 ·
Los mantenedores suelen responder en 1 día