ComplianceReport#

class popo.standards.ComplianceReport(standard, compliant, n_samples, fraction_within, fraction_below, fraction_above, worst_low_pu, worst_high_pu, extreme_breach)#

Bases: object

The outcome of checking a voltage series against a standard.

Variables:
  • standard – Name of the standard applied.

  • compliant – Whether the series meets the standard, coverage rule included.

  • n_samples – Number of finite samples examined.

  • fraction_within – Share of samples inside the normal band.

  • fraction_below – Share below the lower bound.

  • fraction_above – Share above the upper bound.

  • worst_low_pu – Lowest voltage seen, in per unit.

  • worst_high_pu – Highest voltage seen, in per unit.

  • extreme_breach – Whether any sample broke a bound that admits no exceedance, which is what separates a tolerated excursion from a failure under standards that distinguish the two.

summary()#

One line stating the verdict and what drove it.

Return type:

str