torchcell.verification.CarrierGapCensus

class CarrierGapCensus(*, n_records: int, n_records_with_gaps: int, n_gaps: int, by_reason: dict[str, int] = <factory>, by_field: dict[str, int] = <factory>, worklist_fields: list[str] = <factory>, n_carriers: int = 0, n_silent_none: int = 0, silent_none_by_field: dict[str, int] = <factory>, carriers_by_class: dict[str, int] = <factory>, unrecognized_carriers: int = 0)[source]

Bases: ProvenanceGapCensus

The gap census, extended to every carrier and to undeclared None values.

ProvenanceGapCensus counts the gaps a build DECLARES. A field that is simply None with no gap declares nothing, and is indistinguishable in a report from a field that was never applicable, so it is counted here separately, keyed by Class.field, alongside how many carrier objects of each class were seen.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].