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
At present, in order to successfully allow a value to be uprated, it must be defined as something (at minimum, a zeroed-out array) within data/datasets/cps/cps.py; otherwise, it's returned as a series of NaNs, breaking any derivative formulas in the process. This came up recently with uprating applied to social security within policyengine-us, whereby social_security_retirement had been defined, and thus evaluated correctly, but social_security_survivors was not, and thus NaNed out.
Could also be valuable to add a ValueError throw at the same time to ensure that we can adequately trace these in the future, if necessary.
The text was updated successfully, but these errors were encountered:
At present, in order to successfully allow a value to be uprated, it must be defined as something (at minimum, a zeroed-out array) within
data/datasets/cps/cps.py
; otherwise, it's returned as a series ofNaN
s, breaking any derivative formulas in the process. This came up recently with uprating applied to social security withinpolicyengine-us
, wherebysocial_security_retirement
had been defined, and thus evaluated correctly, butsocial_security_survivors
was not, and thusNaN
ed out.Could also be valuable to add a
ValueError
throw at the same time to ensure that we can adequately trace these in the future, if necessary.The text was updated successfully, but these errors were encountered: