Skip to content

Commit

Permalink
Add support for cadence-based uprating (#173)
Browse files Browse the repository at this point in the history
* chore: Add doc for short-code definition method

* test: Add test for standard uprating

* test: Ensure test fails correctly

* feat: Raise error if not all cadence options are added

* test: Fix test

* chore: Refactor parameter construction for self uprating

* chore: Refactor rounding for param uprating

* feat: Construct cadence options set

* fix: Remove unnecessary print, fix types within cadence options

* fix: Change schema

* feat: Partial first implementation of cadence-related funcs

* feat: find_cadence_start func

* feat: Func to find uprater end year

* fix: Repair function to find last uprating date

* fix: Repair func to find first date to include last piece of hard data

* fix: Redo logic behind first date to move in different implementation direction

* feat: Uprating by cadence

* fix: Add rounding back into cadence-based uprating

* test: Add test for two-year offset

* feat: Add error raising for missing first values in uprater

* feat: Custom effective dates for cadence-based upraters

* test: Ensure malformed effective dates fail

* test: Ensure that malformed cadence dates raise error

* feat: Ensure that interval is properly set

* feat: Support custom intervals

* chore: Changelog

* test: Add two tests to catch structural issues in code

* fix: Uprate against correct value

* fix: Rewrite find_cadence_first to properly handle custom intervals

* fix: Rewrite against datetime

* fix: Merge uprate_by_cadence and construct_cadence_uprater

* fix: Add tests to ensure date is valid format

* fix: Fix monthly test; reformat

* chore: Lint
  • Loading branch information
anth-volk authored Mar 22, 2024
1 parent e206491 commit 3bbcd9f
Show file tree
Hide file tree
Showing 3 changed files with 1,034 additions and 71 deletions.
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- Parameters can now be uprated based upon fixed cadences
Loading

0 comments on commit 3bbcd9f

Please sign in to comment.