Skip to content
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

Potential base temperature issues in the thermaltime and alternating model #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ypwong22
Copy link

@ypwong22 ypwong22 commented Jun 21, 2023

Hi, I've been using the package and noticed a mismatch between the documentation and the code in the thermaltime and alternating models. Both models involved a term $max(T_i - threshold, 0)$, according to the documentation. In the code, this is implemented as gdd[gdd < threshold] = 0 , but this does not subtract the threshold from gdd. I changed this to gdd = gdd - threshold; gdd[gdd < 0] = 0. Please let me know if this modification is correct or not.

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.

1 participant