Skip to content

Conversation

@MImmesberger
Copy link
Collaborator

What problem do you want to solve?

Create the bg_id and wthh_id for households with exactly 1 fg endogenously.

Based on the discussion in #763

Copy link
Collaborator

@hmgaudecker hmgaudecker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just skimmed through it, great start!

---
info:
note: ''
note: Skipped because multiple fgs in hh.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this statement is wrong here and for the next few tests, so not repeating. Sometimes there are multiple households indeed, but only one fg per household.

- true
- true
assumed: {}
assumed:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not make it the same as in the next few tests, i.e., adding einstandspartner etc? No big deal, but might make people wonder who look at these one after the other.

info:
note: https://www.bmwsb.bund.de/Webs/BMWSB/DE/themen/wohnen/wohnraumfoerderung/wohngeld/wohngeldrechner-2023-artikel.html
source: ''
note: Skipped because multiple fgs in hh.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we supply the bg_id or would that run counter the purpose of the test in the first place? Same for the next test.

@codecov
Copy link

codecov bot commented Jun 15, 2024

Codecov Report

Attention: Patch coverage is 30.76923% with 9 lines in your changes missing coverage. Please review.

Project coverage is 89.41%. Comparing base (d41cc45) to head (53c7b2f).

Current head 53c7b2f differs from pull request most recent head ca89d68

Please upload reports for the commit ca89d68 to get more accurate results.

Files Patch % Lines
...ttsim/transfers/arbeitsl_geld_2/arbeitsl_geld_2.py 20.00% 4 Missing ⚠️
...gettsim/transfers/benefit_checks/benefit_checks.py 33.33% 4 Missing ⚠️
.../transfers/arbeitsl_geld_2/arbeitsl_geld_2_eink.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #768      +/-   ##
==========================================
- Coverage   89.62%   89.41%   -0.21%     
==========================================
  Files          52       52              
  Lines        3768     3780      +12     
==========================================
+ Hits         3377     3380       +3     
- Misses        391      400       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make 9 tests out of this one and similar ones, else the yaml is illegible. Apologies, I did not mean my suggestion elsewhere to be taken that literally.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure? I worked with both versions and as this is mainly about when household members switch BGs / wthh, I think it helps to have households that are similar (=everything the same, only wage is increasing across households) together and ordered.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! I think this is a great example of where the current thing makes sense while developing (you are sure about the structure and unsure what is correct), but does not when some test starts to fail in 3 years from now (you'd look at the huge test file like I did a couple of hours ago and it takes you ages to realise the precise structure because that's not what our yaml structure is made for).

So feel free to change only when this is ready for review.

Structure should be clear when you nest one level deeper:

endogenous_bg_id/2023/single_parent_unterhalt_1000_1_child/
  - parental_income_0.yaml
  - parental_income_520.yaml

etc.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, makes sense!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just realised it is confusing to have the two digits following each other in the directory name. Maybe change to:

endogenous_bg_id/2023/single_parent_1_child_unterhalt_1000/
  - parental_income_0.yaml
  - parental_income_520.yaml

? Also more sensible to have number of children first and then the alimony paid for them.

MImmesberger added a commit that referenced this pull request Jul 7, 2024
@MImmesberger
Copy link
Collaborator Author

Improved version in #778

@MImmesberger MImmesberger deleted the create_bg_endogenously branch July 8, 2024 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants