Skip to main content

Subsampling design: diagnostics

SubsamplingDesignDiagnostic​

A single sanity diagnostic attached to a subsampling design item.

Returned by: SubsamplingDesignDiagnostics.by_field

MemberKindDescription
descriptor_idattribute
immutable_idattribute
fieldattribute
diagnosticattribute
detailsattributeResolved trial descriptor context (type, unit/levels, description), captured once when this diagnostics view was fetched. Used by SubsamplingDesignDiagnostics.explain.
component_kindproperty
componentproperty

descriptor_id​

Type: str

immutable_id​

Type: str | None

field​

Type: SubsamplingDesignDiagnosticField

diagnostic​

Type: DiagnosticDetails

details​

Type: str | None

Resolved trial descriptor context (type, unit/levels, description), captured once when this diagnostics view was fetched. Used by SubsamplingDesignDiagnostics.explain.

component_kind​

Type: str

component​

Type: _DescriptorRef

SubsamplingDesignDiagnostics​

A filterable, printable, iterable view over subsampling design diagnostics.

Returned by: SubsamplingDesign.diagnostics, SubsamplingDesign.diagnostics_at, SubsamplingDesignDiagnostics.for_descriptor, SubsamplingDesignDiagnostics.for_field, SubsamplingDesignDiagnostics.for_immutable_id, SubsamplingDesignDiagnostics.for_item

MemberKindDescription
for_descriptormethod
for_immutable_idmethod
for_fieldmethod
for_itemmethod
by_descriptormethod
by_fieldmethod
explainmethodRender these diagnostics together with the corresponding trial descriptor's metadata (type, unit/levels, description), resolved from the design's source trial.
with_severitymethod
with_codemethod
errorsmethod
warningsmethod
has_errorsmethod
by_severitymethod

for_descriptor​

for_descriptor(descriptor: str) -> SubsamplingDesignDiagnostics

for_immutable_id​

for_immutable_id(immutable_id: str) -> SubsamplingDesignDiagnostics

for_field​

for_field(*fields: SubsamplingDesignDiagnosticField = ()) -> SubsamplingDesignDiagnostics

for_item​

for_item(item: object) -> SubsamplingDesignDiagnostics

by_descriptor​

by_descriptor() -> dict[str, list[DiagnosticDetails]]

by_field​

by_field() -> (
dict[SubsamplingDesignDiagnosticField, list[SubsamplingDesignDiagnostic]]
)

explain​

explain() -> str

Render these diagnostics together with the corresponding trial descriptor's metadata (type, unit/levels, description), resolved from the design's source trial.

This resolved context was captured once, when this diagnostics view was fetched (i.e. when design.diagnostics / design.diagnostics_at() was accessed) - calling .explain() itself makes no network request. Re-access design.diagnostics for an updated view. Composes with existing filters, e.g.::

design.diagnostics.errors().for_field("numericFilters").explain()

with_severity​

with_severity(*severities: SeverityLiteral = ())

with_code​

with_code(*codes: str = ())

errors​

errors()

warnings​

warnings()

has_errors​

has_errors() -> bool

by_severity​

by_severity() -> dict[str, list[EntryT]]