Releases: PSLmodels/ParamTools
Releases · PSLmodels/ParamTools
ParamTools 0.13.0
ParamTools 0.12.0
- Streamline steps to add custom types with a new
register_custom_type
function. This makes it easy to register a custom type that can be used through out thedefaults
config file. (#93) - Add ability to select value objects based on whether a label is less than or equal to some value with the new
select_lt
function. (#90) - Update the docs website with a slick new theme from Material for MkDocs, add the beginnings of an API reference page using
mkautodoc
, and move the docs website to https://paramtools.dev (#94) - Removes warnings that are shown when adjusting a value for a parameter that is not active in the current state of the
Parameters
instance. (#91)
ParamTools 0.11.1
ParamTools 0.11.0
-
Add a warnings distinction to validators. By default, validators throw errors, but you may specify that they emit warnings instead (#86):
"range": {"min": 0, "max": 10, "level": "warn"}
-
Adds a new
when
validator, that allows you to specify complex conditional validation logic. Here's an example using Tax-Cruncher's social security parameter (#81):{ "when": { "param": "spouse_age", "is": {"less_than": 65}, "then": { "when": { "param": "primary_age", "is": {"less_than": 65}, "then": { "range": {"min": 0, "max": 0} }, "otherwise": { "range": {"min": 0, "max": 9e99} } } }, "otherwise": { "range": {"min": 0, "max": 9e99} } } }
-
A bug fix for the
sort_values
method and its usage indump
. (#87)
ParamTools 0.10.3
ParamTools 0.10.2
ParamTools 0.10.1
ParamTools 0.10.0
- The "schema" object in
defaults
now undergoes comprehensive validation. (#72) - A new "operators" member is added to the "schema" object in
defaults
. Operators are variables likelabel_to_extend
orarray_first
which tell ParamTools how adefaults
object should be loaded. This makes it easier to dump the data for a Parameters instance in one place and load it in another. (#73) - A new approach to doing searches and updates brings performance improvements. (#74)
- The
Parameters
class supports iteration similar to Python dictionaries. (#75)
ParamTools 0.9.0
- Make it easier to customize the
adjust
method. This allows projects to use custom adjustment formats or apply custom logic. Checkout the custom adjustment docs to learn more. (#70) - Enhancements and bug fixes for the
extend
method. (#71)
ParamTools 0.8.0
- Add out-of-the-box parameter indexing. This is helpful for projects that have parameters that change at some rate over time. For more information, checkout the indexing docs. (#65)