-
Notifications
You must be signed in to change notification settings - Fork 73
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
Hour angle filter #375
Hour angle filter #375
Conversation
Fixes for pandas 2.0.0 compatibility
…nto hour_angle_filter
rdtools/analysis_chains.py
Outdated
@@ -464,6 +464,18 @@ def _call_clearsky_filter(filter_string): | |||
f = filtering.clip_filter( | |||
self.pv_power, **self.filter_params['clip_filter']) | |||
filter_components['clip_filter'] = f | |||
if 'hour_angle_filter' in self.filter_params: | |||
if self.pvlib_location is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if undefined, self.pvlib_location won't be None, it'll actually return an AttributeError. I've got a fix for the handful of places this crops up. There's another bug of this nature on the check for tilt and azimuth too...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's working for me, the run time is a bit slow though. Maybe something to optimize later.
Our tests are failing because the pvlib clearsky function doesn't seem to like our artificial test case. Will revisit when it comes time for a more stable release. |
__init__.py