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

Add safe return to Microsimulation.calc #161

Open
nikhilwoodruff opened this issue Aug 23, 2021 · 0 comments
Open

Add safe return to Microsimulation.calc #161

nikhilwoodruff opened this issue Aug 23, 2021 · 0 comments
Labels
code-health Code quality and maintainability

Comments

@nikhilwoodruff
Copy link
Collaborator

Often we want to calculate a variable across both baseline and reform simulations, where it only exists in the reform, e.g. UBI. We could add a safe=bool keyword argument which would return an array of zeros. This would probably require that map_to is also passed, in order to know what shape array to return.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-health Code quality and maintainability
Projects
None yet
Development

No branches or pull requests

2 participants