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
A simulation given an input for a year before its data holds no identifiers there #2353
A simulation given an input for a year before its data holds no identifiers in that year. When its exported frame is loaded back, the new simulation holds the real identifiers there, so formulas that read identifiers give different values in that year.
policyengine-core carries an input forward but never back. Simulation._calculate returns the default when the only stored periods are later ones (core 3.32.27 simulations/simulation.py:1199-1250).
So in 2023 the identifiers are zero.
The loader treats every whole year a frame gives values for as a dataset year, and each year's tables hold all five identifiers (policyengine_uk/data/input_dataframe.py, dataset_from_input_dataframe). So the reloaded simulation holds the real identifiers in 2023.
The frame still round-trips, but these formulas read identifiers, so their values differ in that year:
Activity