Skip to content

Conversation

@lars-reimann
Copy link
Contributor

@lars-reimann lars-reimann commented Apr 25, 2023

Summary of Changes

Implement namespaces as described in #14.

lars-reimann and others added 27 commits March 9, 2023 10:45
Co-authored-by: Hans-Martin von Gaudecker <[email protected]>
Co-authored-by: Hans-Martin von Gaudecker <[email protected]>
Co-authored-by: Hans-Martin von Gaudecker <[email protected]>
@codecov
Copy link

codecov bot commented Apr 25, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (645e7d5) 96.46% compared to head (43173e8) 97.71%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
+ Coverage   96.46%   97.71%   +1.24%     
==========================================
  Files           8       10       +2     
  Lines         453      699     +246     
==========================================
+ Hits          437      683     +246     
  Misses         16       16              

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

@MImmesberger
Copy link
Member

Added a short documentation of the new features. Also added a function that requires no trailing underscores for branches (and mentioned that in the docs).

@MImmesberger
Copy link
Member

MImmesberger commented Feb 4, 2025

ToDos:

  • Switch from flatten-dict to optree

Copy link
Member

@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.

Looks great to me and works very nicely!

I'd say let's merge it and see whether anything comes up over the next couple of months before a GETTSIM release.

Thanks a lot, everyone involved!

@hmgaudecker
Copy link
Member

I am assuming the test errors are a fluke from outdated infrastructure.

@hmgaudecker hmgaudecker merged commit b3cd191 into OpenSourceEconomics:main Feb 11, 2025
5 of 12 checks passed
hmgaudecker added a commit to ttsim-dev/gettsim that referenced this pull request Feb 15, 2025
This PR adds the namespace infrastructure to GETTSIM.

- [x] Write `policy_function` decorator (rename `policy_info` and change
behavior so that a `PolicyFunction` instance is returned). ~Apply to all
TT functions.~ (that should be part of renamings)
- [x] Check that functions in module with same simple_name have the
correct start_date, end_date specs (this was removed from the
policy_info decorator).
- [x] Remove doubled levels in the functions tree automatically (to
avoid writing functions in `__init__.py`).
- [x] Go over type hints for aggregation functions.
- [x] Refactor interface module.
- [x] Implement some safety checks 
- [x] No function should have the same name as a module in the same
directory
- [x] No trailing underscores in module names (for [DAGS
PR](OpenSourceEconomics/dags#17))

---------

Co-authored-by: Marvin Immesberger <[email protected]>
Co-authored-by: Tim Mensinger <[email protected]>
Co-authored-by: Hans-Martin von Gaudecker <[email protected]>
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.

3 participants