pycsamt.iot.edge#
Functions
|
Return one row per channel from edge-processing results. |
Classes
|
Quality-control summary for one edge data channel. |
|
Acceptance state assigned by edge-side quality control. |
|
Configuration for lightweight field-side processing. |
|
Summary returned by |
|
Small edge-processing block for telemetry payload reduction. |
- class pycsamt.iot.edge.EdgeDecision(*values)[source]#
-
Acceptance state assigned by edge-side quality control.
ACCEPTandREJECTare the hard decisions.WARNINGmarks a window that is usable but marginal,REPEATrequests re-occupation, andUNKNOWNis used when QC could not be evaluated.- ACCEPT = 'accept'#
- REJECT = 'reject'#
- WARNING = 'warning'#
- REPEAT = 'repeat'#
- UNKNOWN = 'unknown'#
- class pycsamt.iot.edge.EdgeChannelSummary(channel, n_sample, finite_coverage, rms, mean, std, min, max, spike_fraction, accepted, reasons=<factory>)[source]#
Bases:
PyCSAMTObjectQuality-control summary for one edge data channel.
- Parameters:
- class pycsamt.iot.edge.EdgeProcessingConfig(decimation=1, finite_threshold=0.9, sample_axis=0, channel_names=None, compute_rms=True, compute_coverage=True, compute_spikes=True, spike_threshold=6.0, max_spike_fraction=0.05, warn_finite_threshold=None, warn_spike_fraction=None, retain_payload_samples=False, metadata=<factory>)[source]#
Bases:
PyCSAMTObjectConfiguration for lightweight field-side processing.
- class pycsamt.iot.edge.EdgeProcessingResult(data, metrics, accepted, reasons=<factory>, channels=<factory>, decision_override=None)[source]#
Bases:
PyCSAMTObjectSummary returned by
EdgeProcessor.- Parameters:
- channels: list[EdgeChannelSummary]#
- decision_override: EdgeDecision | str | None = None#
- property decision: EdgeDecision[source]#
Return the compact QC decision.
Falls back to a plain accept/reject derived from
acceptedunless an explicitdecision_override(e.g.WARNING) was assigned by the processor.
- class pycsamt.iot.edge.EdgeProcessor(config=None)[source]#
Bases:
PyCSAMTObjectSmall edge-processing block for telemetry payload reduction.
- Parameters:
config (EdgeProcessingConfig | None)
- pycsamt.iot.edge.edge_summary_table(result, *, api=None)[source]#
Return one row per channel from edge-processing results.
- Parameters:
result (EdgeProcessingResult | Iterable[EdgeProcessingResult])
api (bool | None)
- Return type: