kevin9327
7a13713903
fix(fundamentals): 换报告期公告当日不再丢失上一期财务因子值
attach_fundamental_factors 用公告日做 asof 回看再按「严格大于」门控:
日期正好等于新一期公告日时, join_asof 已匹配到「当天还不能用」的新记录,
门控随即置 null, 打断上一期的前向填充。矩阵路径 build_fundamental_matrices
按 searchsorted(side="right") 逐期覆盖, 公告当日保留上一期, 两条路径因此不一致
(其 docstring 声明与 attach_fundamental_factors 同口径)。
asof 键改用生效日 (公告日次日), 只命中已生效的报告期; 公告前仍为 null 的门控不变。
补 tests/test_fundamental_factors.py 的两条公告一致性用例。
2026-09-09 07:19:09 +09:00
..
2026-09-08 18:09:59 +08:00
2026-09-09 07:19:09 +09:00
2026-08-13 20:16:02 +08:00
2026-09-05 22:49:52 +08:00
2026-08-13 20:16:02 +08:00
2026-09-06 18:27:33 +08:00
2026-09-06 18:27:33 +08:00
2026-09-06 22:35:24 +08:00
2026-09-06 17:39:43 +08:00
2026-09-08 21:06:40 +08:00
2026-09-07 15:25:48 +08:00
2026-09-07 15:25:41 +08:00
2026-09-05 15:41:15 +08:00
2026-09-07 15:25:41 +08:00
2026-07-31 19:56:33 +08:00
2026-07-16 12:17:27 +08:00
2026-09-07 15:25:27 +08:00
2026-09-07 15:25:41 +08:00
2026-08-30 19:05:14 +08:00
2026-07-09 17:38:44 +08:00
2026-09-07 15:25:41 +08:00
2026-07-18 23:37:54 +08:00
2026-09-04 16:37:06 +08:00
2026-07-18 23:37:54 +08:00
2026-09-07 15:25:41 +08:00