From 0c21b878eb65aa722d110a6fcdaee30e6bacc887 Mon Sep 17 00:00:00 2001 From: martin-springer Date: Mon, 2 Dec 2024 16:25:30 -0500 Subject: [PATCH] add warning when power_expected is passed to clearsky workflow --- rdtools/analysis_chains.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rdtools/analysis_chains.py b/rdtools/analysis_chains.py index 6ba72042..177c5833 100644 --- a/rdtools/analysis_chains.py +++ b/rdtools/analysis_chains.py @@ -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]