Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for cadence-based uprating (#173)
* 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