PSLmodels / ParamTools

Library for parameter processing and validation with a focus on computational modeling projects
https://paramtools.dev
MIT License
19 stars 14 forks source link

Add get_defaults method to allow sub-class to customize parameter loading #138

Open hdoupe opened 3 months ago

hdoupe commented 3 months ago

@jdebacker , let me know if this works for you. You can override the get_defaults class in taxcalc.Parameters and change this value in the JSON to use the new last year value.

https://github.com/PSLmodels/Tax-Calculator/blob/b41af537803488b6ac40beb0a0e0a7e81cfb6dbd/taxcalc/policy_current_law.json#L9

hdoupe commented 1 month ago

@jdebacker you mind if I merge this?

jdebacker commented 1 month ago

@hdoupe No problem with you merging this, but I had been working off of this branch and was unable to use this how I wanted. That's surely my problem, but I might want to follow up with you for a little more guidance.

But if this PR is ready, can you bump the version and we'll make a new release with this functionality?