mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 16:44:15 +08:00
attach_fundamental_factors 用公告日做 asof 回看再按「严格大于」门控: 日期正好等于新一期公告日时, join_asof 已匹配到「当天还不能用」的新记录, 门控随即置 null, 打断上一期的前向填充。矩阵路径 build_fundamental_matrices 按 searchsorted(side="right") 逐期覆盖, 公告当日保留上一期, 两条路径因此不一致 (其 docstring 声明与 attach_fundamental_factors 同口径)。 asof 键改用生效日 (公告日次日), 只命中已生效的报告期; 公告前仍为 null 的门控不变。 补 tests/test_fundamental_factors.py 的两条公告一致性用例。