Skip to content

Conversation

MImmesberger
Copy link
Collaborator

What problem do you want to solve?

Closes #1010

… implementations of endogenous BG and WTHH ID.
@MImmesberger
Copy link
Collaborator Author

The warning mechanism is still missing and I haven't created the external repo, but the GETTSIM part is pretty much done. You can have a look if you find the time! @hmgaudecker

@MImmesberger MImmesberger marked this pull request as ready for review July 25, 2025 16:38
@MImmesberger MImmesberger requested a review from hmgaudecker July 25, 2025 16:39
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.

Very nice, just cosmetics!

@MImmesberger MImmesberger merged commit 5a10e0c into main Jul 26, 2025
9 checks passed
@MImmesberger MImmesberger deleted the exogenous-groupings branch July 26, 2025 08:29
hmgaudecker added a commit to ttsim-dev/ttsim that referenced this pull request Jul 26, 2025
- As discussed in [GETTSIM
#1055](ttsim-dev/gettsim#1055), we sometimes
want to fail or issue a warning if a certain node is visited in the
graph. This PR adds a mechanism for that along with corresponding tests
- Implementation: 
  - All `ColumnObjects` and `ParamFunctions` are endowed with attributes
`warn_msg_if_included: str | None = None` and `fail_msg_if_included: str
| None = None`.
  - These are checked by a corresponding fail/warn function each, which
depends on the TT DAG and the specialised environment without tree logic
and with derived functions (guaranteed to catch the correct type of
object)
  - For warn functions, only unique messages are displayed. E.g., in the
GETTSIM example triggering this, we have at least three functions, which
all have the same message.
- As we visited that code, we realised that `tt_dag` is a better name
for `tax_transfer_dag` as we are using that abbreviation much more
extensively that 'tax_transfer' by now. Renamed, same for
`tax_transfer_function` -> `tt_function`.
hmgaudecker added a commit that referenced this pull request Jul 26, 2025
- In [TTSIM #16](ttsim-dev/ttsim#16), we
implemented a mechanism to raise errors or emit warnings for objects
that are part of the TT DAG.
- This implements warnings for our prime example motivating that
feature, that is, GETTSIM's `bg_id`, `wthh_id`, and
`wohngeld_kinderzuschlag_vorrangig_oder_günstiger` functions (see #1055)
- It also replaces `NotImplementedErrors` by that mechanism because
errors will be collected instead of being raised on-by-one.
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.

ENH: Make serious FG-BG-WTHH creation exogenous

2 participants