Multiple shooting drops the per-measurement binding table when it splits data into segments, so a per-measurement model under job_type = ms is refused with the wrong cause
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 76/100
Línea de trabajo
Lee pybnf/shooting/problem.py e inspecciona _subset_rows, que crea Data para cada segmento; compara cómo selecciona los valores y pesos indexados por fila. Usa la reproducción del issue para comprobar que measurement_params contiene las filas correspondientes en el mismo orden después de la segmentación. Se considera terminado cuando un segmento de multiple shooting conserva las vinculaciones de las filas seleccionadas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
_subset_rows in pybnf/shooting/problem.py builds each segment's Data from the experiment's data. It copies the values, the columns, the headers, the independent variable and the weights, but not measurement_params, the per-measurement binding table that a row-varying observable or noise formula reads (ADR-0045).
Reproduction:
import numpy as np
from pybnf.data import Data
from pybnf.shooting.problem import _subset_rows
d = Data.from_columns(np.array([[0., 1.], [1., 2.], [2., 3.]]), ['time', 'y'])
d.measurement_params = {'y': {'scale': ['s1', 's2', 's3']}}
seg = _subset_rows(d, [1, 2])
print(getattr(seg, 'measurement_params', None)) # None
So under job_type = ms, a per-measurement model or a row-varying noise formula finds no binding table, and the fit stops with a message such as "A row-varying noise formula ... needs a per-measurement binding table, but none is attached to the experimental data. The experiment must declare 'measurement_params: .tsv'", even when the experiment does declare it. The independent review of the #1030 fix found this by running such a fit.
Copying the table is not enough on its own. The table is indexed by data row, and a segment keeps only some rows, so each segment needs the table's rows for the rows it keeps, in the same order. Until that is done, job_type = ms with a per-measurement model or noise formula could instead be refused at load with that reason.
- 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 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
-
bug minor
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/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