-
Notifications
You must be signed in to change notification settings - Fork 16
Refactor weekday calc into utils #1282
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
Conversation
@mariajahja @rumackaaron For 👀 on this draft. |
Just noticed that we have no weekday tests. Would it be possible to confirm that the output of the indicators is unchanged by the refactor? |
Yea definitely would be a good idea. Are there any trivial input/outputs we could use to verify the minimization is working? Or at worst we can just rerun the old implementation on some test data (on the assumption it's working) and make sure the new one outputs the same values. |
Unfortunately, with the L1 smoothing I don't think there are trivial outputs that will work. I think the second suggestion makes sense. |
The expected values in these tests were generated by running the version of these methods on master
@rumackaaron Added some tests for the weekday.py methods. The expected values in the tests were generated by running the test values through the methods on main. |
Description
Refactor DV, CHNG, and Claims_hosp to use the same calc_adjustment (fc5c8dd)and weekday function (1175e5d and later) and move into delphi utils . CHNG and claims_hosp were previously using the same one while DV had a multi-column version.
Changelog
Itemize code/test/documentation changes and files added/removed.
X
)Fixes