Convert standard_deduction values to a numpy array and back to a list of value objects: In [3]: params.from_array( ...: "standard_deduction", ...: params.to_array("standard_deduction", year=[2014, 2015]), ...: year=[2014, 2015] ...: ) Out[3]:
- Bug fix for overriding the `ops` values like `array_first` or `label_to_extend` when initializing a `Parameters` instance (104): python params = Params(array_first=False, label_to_extend=None)
- Fixes bug in `sort_values` method that occurs when using it in conjunction with `set_state` (106):
python In [1]: from taxcalc import Policy ...: pol = Policy(array_first=False) ...: pol.select_eq("STD", strict=False, year=[2021]) ...: pol.set_year([2018, 2019, 2020, 2021])
Delete automatically created values and replace using the new rules: params.delete( { "standard_deduction": automatically_added } )
- Add a `clobber` argument to the `adjust` method that allows you to toggle whether user-defined values should be overridden while doing an adjustment in extend mode. (102)
- Bug fixes for corner cases in logic for extending parameter values. (103)
- API change in `extend` method to use more concise keyword arguments. The argument `label_to_extend` is now `label` and the `label_to_extend_values` is now `label_values`. (103)
- Ability to specify the state to be used when converting between lists of value objects and arrays (105): python Select standard_deduction values in years 2014 and 2015 In [2]: params.to_array("standard_deduction", year=[2014, 2015]) Out[2]:
0.18.3
Changes `parameters.py` to call the new `_hook` method and not the deprecated `_has_processors` method for compatibility with `marshmallow 3.22`.
0.18.2
Use `load_defaults` rather than `missing` in calls to `calls to marshmallow.fields` to avoid deprecation warnings. (PR https://github.com/PSLmodels/ParamTools/pull/134)
0.18.1
- Fix bug when using a `when` validator with `defer_validation`. (127)