Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply mask in labor_supply_response to avoid divide-by-zero warning #4515

Open
MaxGhenis opened this issue May 10, 2024 · 0 comments
Open

Apply mask in labor_supply_response to avoid divide-by-zero warning #4515

MaxGhenis opened this issue May 10, 2024 · 0 comments
Assignees

Comments

@MaxGhenis
Copy link
Contributor

https://github.com/PolicyEngine/policyengine-us/actions/runs/9020321184/job/24785217630?pr=4512#step:5:1580

policyengine_us/tests/test_variables.py: 4 warnings
/home/runner/work/policyengine-us/policyengine-us/policyengine_us/variables/gov/simulation/labor_supply_response/labor_supply_response.py:284: RuntimeWarning: invalid value encountered in divide
earnings > 0, employment_income / earnings, 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants