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

Hour angle filter #375

Merged
merged 24 commits into from
May 26, 2023
Merged

Conversation

mdeceglie
Copy link
Collaborator

  • Code changes are covered by tests
  • Code changes have been evaluated for compatibility/integration with TrendAnalysis
  • New functions added to __init__.py
  • API.rst is up to date, along with other sphinx docs pages
  • Example notebooks are rerun and differences in results scrutinized
  • Updated changelog

@mdeceglie mdeceglie requested a review from cdeline May 24, 2023 22:49
@@ -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:
Copy link
Collaborator

@cdeline cdeline May 25, 2023

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...

Copy link
Collaborator

@cdeline cdeline left a 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.

@mdeceglie
Copy link
Collaborator Author

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.

@mdeceglie mdeceglie merged commit 20bc73c into aggregated_filters_for_trials May 26, 2023
@mdeceglie mdeceglie deleted the hour_angle_filter branch May 26, 2023 18:47
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