Closed martinholmer closed 1 year ago
This is the new warning message:
policyengine_us/tests/test_variables.py::test_variable[marginal_tax_rate] policyengine_us/tests/test_variables.py::test_variable[marginal_tax_rate] policyengine_us/tests/test_variables.py::test_variable[cliff_gap] policyengine_us/tests/microsimulation/test_microsim.py::test_microsim_runs_cps /Users/mrh/work/policyengine-us/policyengine_us/variables/ gov/ed/pell_grant/efc/head/pell_grant_head_contribution.py:29: RuntimeWarning: invalid value encountered in true_divide return total / dependents
It seems as if the dependents variable is often zero in the CPS data.
dependents
@CalebPena could you apply a mask to this calculation to avoid this warning? You can search the repo for examples.
mask
I went ahead with this as it caused an API issue
This is the new warning message:
It seems as if the
dependents
variable is often zero in the CPS data.