Provenance¶
Acquisition provenance: which instrument produced a waveform, configured how
Acquisition provenance: which instrument produced a waveform, configured how.
Snapshots are taken at acquisition time so the recorded settings reflect the state that actually produced the trace. Every field is Optional: a model that cannot answer a query records None instead of failing the acquisition.
AcquisitionProvenance
dataclass
¶
AcquisitionProvenance(schema_version: int = SCHEMA_VERSION, instrument: Optional[InstrumentInfo] = None, channels: Dict[int, ChannelSettings] = dict(), trigger: Optional[TriggerSettings] = None, timebase: Optional[float] = None, sample_rate: Optional[float] = None, acquired_at: Optional[str] = None, address: Optional[str] = None, dialect: Optional[str] = None, library_version: Optional[str] = None)
from_scope
classmethod
¶
Snapshot the scope's current state. Never raises: unavailable settings become None.
Source code in scpi_control/provenance.py
See Also¶
- Waveform - Waveform acquisition and data handling
- Waveform I/O - Read saved waveform files back, including their provenance