You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] shift on a pattern stores its display labels as development, and development then raises TypeError #1576
Triangle.shift renames the kept columns with self.development. On a pattern, development returns display labels such as "12-24", so after the shift ddims holds strings and reading development raises TypeError when it adds the grain offset to them. The values shift correctly. Seen on main at 8e2e53c.
I ran into it while trying to write the one-year CDR standard error of #1558 with Triangle methods only.
How can the bug be reproduced?
importchainladderasclldf=cl.Development().fit(cl.load_sample("raa")).ldf_print(ldf.ddims[:2], ldf.shift(1).ddims[:2])
# [12 24] ['12-24' '24-36']ldf.shift(1).development# TypeError: unsupported operand type(s) for -: 'str' and 'str'
Activity
henrydingliu commentedon Nov 10, 2026
this probably have to wait for #1304