Allow clip_filter for energy-based trend analyses#474
Merged
martin-springer merged 48 commits intodevelopmentfrom Feb 4, 2026
Merged
Allow clip_filter for energy-based trend analyses#474martin-springer merged 48 commits intodevelopmentfrom
martin-springer merged 48 commits intodevelopmentfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## development #474 +/- ##
===============================================
- Coverage 96.26% 96.22% -0.04%
===============================================
Files 12 12
Lines 2276 2279 +3
===============================================
+ Hits 2191 2193 +2
- Misses 85 86 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
mdeceglie
approved these changes
Feb 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR enables the clip_filter to be used in energy-based analyses by falling back to pv_energy when pv_power is not available. It also adds validation to ensure the data has sufficient time resolution for clipping detection.
Changes
analysis_chains.py
analysis_chains_test.py
docs/sphinx/source/changelog/pending.rst
Motivation
When users provide energy data directly (via pv_input="energy"), the pv_power attribute is None. Previously, this would cause the trend analysis to fail and raise a ValueError. This change allows clipping detection to work with energy data, provided the time resolution is adequate (≤60 minutes).
[ ] New functions added to__init__.py[ ] API.rst is up to date, along with other sphinx docs pages