-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update Kids model and calculate cost of kids
- Update `Kids` model in `config.py` to include `fraction_of_spending` and `years_of_support` properties. - Add new function `_calc_cost_of_kids` in `state_change.py` to calculate the cost of children based on the current date, spending, and `Kids` configuration. - Implement tests in `test_state_change.py` to validate the calculation of the cost of kids. - Add new field "Kids" in the `Results` class in `simulator.py` to display the cost of children in the simulation results. - Update the sample configuration file `full_config.yml` to reflect the changes in the `Kids` model.
- Loading branch information
1 parent
690c5c6
commit 44a39a1
Showing
5 changed files
with
89 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters