captest.capdata.CapData.rep_cond
- CapData.rep_cond(irr_bal=False, percent_filter=20, front_poa='poa', w_vel=None, func=None, rc_kwargs={})
Calculate reporting conditions for the current regression formula.
The calculation is formula-agnostic: the right-hand-side variables of
self.regression_formuladrive which columns are aggregated. Always writes the result toself.rc.- Parameters:
irr_bal (bool, default False) – If True, uses ReportingIrradiance to determine the reporting irradiance (
front_poa). When True, the other reporting conditions are aggregated from the subset of data within the balanced irradiance band.percent_filter (int, default 20) – Percentage used to define the irradiance band around the reporting irradiance when
irr_balis True. Has no effect whenirr_balis False.front_poa (str, default 'poa') – Key in
self.regression_colswhose column is used as the irradiance driver whenirr_balis True.w_vel (numeric or None) – If not None, overrides the calculated wind speed reporting condition with this value.
func (dict, str, callable, or None, default None) – Passed to
df.agg(...). A dict maps rhs variable names to aggregation functions (e.g.{'poa': perc_wrap(60), 't_amb': 'mean'}). When None, defaults to{var: 'mean' for var in rhs}whererhsis derived fromself.regression_formula.rc_kwargs (dict) – Passed to
ReportingIrradiancewhenirr_balis True.
- Returns:
Reporting conditions are stored on
self.rcas a one-row DataFrame. Userep_cond_freqfor seasonal/monthly outputs.- Return type:
None