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
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
阅读 pybnf/shooting/problem.py 并检查 _subset_rows,它为每个分段创建 Data;比较它如何对按行索引的值和权重进行子集选择。使用 issue 中的复现步骤检查分段后 measurement_params 是否按相同顺序包含对应的行。完成标准是 multiple shooting 分段保留其所选行的绑定关系。
由索引模型根据 Issue 内容生成。
描述
_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.
- 主要语言
- Python
- 星标
- 25
- 派生
- 25
- 平均合并
- 4 小时 5 分钟
- 30 天内合并 PR
- 10
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
lanl/PyBNF 的其他 Issue
-
bug minor
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug tech debt
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug minor
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
bug silent-incorrectness
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug minor
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
维护者通常 6 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
-
gh-sync ship audits cards before writing station done, so every ship reports false STATUS findings未关闭harness
难度 2/5 1-3 小时 新手友好度 72/100
mruangutai/harness#2455 ·
维护者通常 1 天内回复
-
stripthink leaves thinking text in place when the chat template opens the think tag in the prompt可能已有人在做 @MaiAditya 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 80/100
维护者通常 1 天内回复
-
xcorr sizes its bin array from the largest observed m/z, so one out-of-range peak kills the run可能已有人在做 @BioGeek 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 75/100
instadeepai/winnow#312 ·