You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
solarposition.hour_angle is inefficient and fails on some pandas versions #598
Describe the bug
For some reason related to timezone handling, the solarposition.hour_angle function fails on pandas versions 0.15-0.18. We test 0.14 and latest. Apparently we were on pandas 0.19 or greater when this function was created.
Also, the loop over datetime values is probably slow.
@wholmgren I believe this may be related to the pandas issues I observed in #583 - I noticed this hour_angle code, and I thought I should have addressed it then, but I didn't. It was my bad code from the Bird clear sky model, sorry!
Activity
mikofski commentedon Oct 4, 2018
@wholmgren I believe this may be related to the pandas issues I observed in #583 - I noticed this
hour_anglecode, and I thought I should have addressed it then, but I didn't. It was my bad code from the Bird clear sky model, sorry!wholmgren commentedon Oct 4, 2018
No worries, Mark. Do you want to address this and #597 in #583? Or do you think we should handle them separately?
mikofski commentedon Oct 4, 2018
I will address them, but I'd rather open a new PR to fix the
hour_angleissues, unless you would prefer notwholmgren commentedon Oct 4, 2018
New PR sounds good to me. Thanks!
add test for hour_angle, vectorize
add test for hour_angle, vectorize (#599)