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

Bug in eto_hargreaves function #577

Open
njdepsky opened this issue Feb 26, 2025 · 0 comments
Open

Bug in eto_hargreaves function #577

njdepsky opened this issue Feb 26, 2025 · 0 comments

Comments

@njdepsky
Copy link

Line 316 of eto.py in the eto_hargreaves() function should compare the sizes of the three input arrays, but only includes ".size" on the first boolean argument, resulting in an error when running function.

Current syntax:
if daily_tmin_celsius.size != daily_tmax_celsius != daily_tmean_celsius:

Correct syntax:
if daily_tmin_celsius.size != daily_tmax_celsius.size != daily_tmean_celsius.size:

Perhaps this wasn't an issue with certain dependency versions, but on python 3.12.8 I'm getting an error:
"The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

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

No branches or pull requests

1 participant