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_formula drive which columns are aggregated. Always writes the result to self.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_bal is True. Has no effect when irr_bal is False.

  • front_poa (str, default 'poa') – Key in self.regression_cols whose column is used as the irradiance driver when irr_bal is 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} where rhs is derived from self.regression_formula.

  • rc_kwargs (dict) – Passed to ReportingIrradiance when irr_bal is True.

Returns:

Reporting conditions are stored on self.rc as a one-row DataFrame. Use rep_cond_freq for seasonal/monthly outputs.

Return type:

None