Skip to content

Commit

Permalink
add warning when power_expected is passed to clearsky workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-springer committed Dec 2, 2024
1 parent b3927da commit 0c21b87
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rdtools/analysis_chains.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,12 @@ def _clearsky_preprocess(self):
self.poa_global_clearsky,
pv_input="energy",
)
warnings.warn(
"""Clear-sky analysis is peformed but `power_expected` was passed in by user.
In this case, the power normalization is not tied to the modeled clear-sky
irradiance and the clear-sky workflow will provide the same results as
the sensor workflow."""
)
self._filter(cs_normalized, "clearsky")
cs_aggregated, cs_aggregated_insolation = self._aggregate(
cs_normalized[self.clearsky_filter], cs_insolation[self.clearsky_filter]
Expand Down

0 comments on commit 0c21b87

Please sign in to comment.