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
RuntimeWarning: invalid value encountered in divide — QBI / labor-supply variables (84 occurrences in policyengine.py test suite) #8216
Running pytest tests --no-cov on PolicyEngine/policyengine.py@joss-paper produces 429 passes and 84 RuntimeWarning: invalid value encountered in divide warnings. All originate from policyengine_us, concentrated in QBI (qualified business income) and labor-supply variables.
These are not test failures, but they create significant noise in the test output and likely indicate division-by-zero in formulas that should be guarded with np.where / np.divide(where=...).
Activity
Guard QBI phaseout division when po_length is zero (#8217)