Skip to content

Comments

Packyears fix#134

Merged
DougManuel merged 2 commits intomainfrom
packyears-bug
Jun 4, 2025
Merged

Packyears fix#134
DougManuel merged 2 commits intomainfrom
packyears-bug

Conversation

@StaceyFisher
Copy link
Contributor

Number of cigs per month wasn't being converted to packyears per month for current occasional, former daily smokers, which is done by dividing by 20. Thanks to @reikookamoto for finding this bug!

number of cigs per month wasn't being converted to packeyars per month, which is done by dividing by 20
@yulric yulric self-requested a review April 1, 2025 18:16
The test case and expected values are stored in the `pack_years.csv` file

It uses a newly added function called `test_derived_function` to run the
expectations. This function can also be used by other functions that want to
use the same workflow for testing

Added instructions for using the new `test_derived_function` in a README.md
file
@yulric
Copy link
Contributor

yulric commented Apr 19, 2025

@StaceyFisher the latest commit adds a test for the "former daily, current occasional" scenario. Can you take a look and let
me know if you think that workflow for testing derived functions sounds reasonable?

@DougManuel
Copy link
Contributor

Looks good. I'll merge.

@DougManuel DougManuel merged commit 31b71e1 into main Jun 4, 2025
@DougManuel DougManuel deleted the packyears-bug branch July 2, 2025 01:45
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