Add get_defaults method to allow sub-class to customize parameter loading
@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
@jdebacker you mind if I merge this?
@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?
Can you confirm that this change is fully backwards compatible? It seemed to work find in Tax-Calculator, but I wanted to be sure more broadly.
@hdoupe If this PR is ready to go, let me know and I will merge it.
I was able to use these changes to do what I needed in Tax-Calculator with respect to extending the range of years in the default parameters JSON file.