captest.captest.perc_wrap
- captest.captest.perc_wrap(p)
Return a callable that computes the
p-th percentile of a Series.Used to build
TEST_SETUPS[...]['rep_conditions']['func']dicts for percentile-based reporting irradiance (e.g. 60th percentile POA).- Parameters:
p (numeric) – Percentile in [0, 100].
- Returns:
Function that takes a pandas Series or array-like and returns the p-th percentile using
method='nearest'.- Return type:
callable