iza-institute-of-labor-economics / gettsim

The GErman Taxes and Transfers SIMulator
https://gettsim.readthedocs.io/
GNU Affero General Public License v3.0
54 stars 32 forks source link

Fix time conversion after rounding #715

Closed lars-reimann closed 6 months ago

lars-reimann commented 6 months ago

What problem do you want to solve?

Closes #712

Previously, deriving a time-converted function from a rounded function lead to the following error:

KeyError: Rounding specifications for function test_func_y are expected in the parameter dictionary 
at ['params_key_test']['rounding']['test_func_y']. These nested keys do not exist. 
If this function should not be rounded, remove the respective decorator.

This PR fixes this.

Todo

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 89.49%. Comparing base (e992d7b) to head (5c5da12).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #715 +/- ## ========================================== + Coverage 89.44% 89.49% +0.05% ========================================== Files 51 51 Lines 3637 3637 ========================================== + Hits 3253 3255 +2 + Misses 384 382 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.