diff --git a/Documentation/CHANGELOG.md b/Documentation/CHANGELOG.md index a9d7f959f..a25858258 100644 --- a/Documentation/CHANGELOG.md +++ b/Documentation/CHANGELOG.md @@ -18,6 +18,7 @@ Release Date: TBD - Allows structural equations in model files to be provided in string form [#1427](https://github.com/econ-ark/HARK/pull/1427) - Introduces `HARK.parser' module for parsing configuration files into models [#1427](https://github.com/econ-ark/HARK/pull/1427) - Allows construction of shocks with arguments based on mathematical expressions [#1464](https://github.com/econ-ark/HARK/pull/1464) +- YAML configuration file for the normalized consumption and portolio choice [#1465](https://github.com/econ-ark/HARK/pull/1465) #### Minor Changes diff --git a/HARK/parser.py b/HARK/parser.py index 404c7b6f4..3f21ff7f9 100644 --- a/HARK/parser.py +++ b/HARK/parser.py @@ -46,7 +46,10 @@ def math_text_to_lambda(text): def harklang_loader(): - """Add constructors to PyYAML loader.""" + """ + A PyYAML loader that supports tags for HARKLang, + such as random variables and model tags. + """ loader = yaml.SafeLoader yaml.SafeLoader.add_constructor( "!Bernoulli", tuple_constructor_from_class(Bernoulli) @@ -62,6 +65,3 @@ def harklang_loader(): ) return loader - - -########################################################################