-
Notifications
You must be signed in to change notification settings - Fork 1
Namespaces #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Namespaces #17
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
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]>
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
|
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). |
|
ToDos:
|
hmgaudecker
left a comment
There was a problem hiding this 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!
|
I am assuming the test errors are a fluke from outdated infrastructure. |
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]>
Summary of Changes
Implement namespaces as described in #14.