Capture
Attributes
| Name | Type | Description |
|---|---|---|
analog_data | Dict[str, BaseAnalogData] | |
digital_data | Dict[str, BaseDigitalData] | |
config | CaptureConfig | |
analog_start_time | float | Returns the start time of the capture. |
analog_sample_rate | float | Returns the sample rate of the capture. |
analog_channel_names | List[str] | Returns a list of analog channel names in the capture. Returns: List of channel names (e.g., ['ch1_volts', 'ch2_volts', ...]) Returns an empty list if no analog data is available. |
analog_time_series | NDArray[np.float64] | Returns the time array for analog data. |
analog_stop_time | float | Returns the end time of the capture. |
num_analog_samples | int | Returns the number of analog samples in the capture. |
Methods
classmethod
from_dir(dir_path: Path) -> Capture
Create a Capture from a directory containing analog_<n>.bin files.
Args: dir_path: Path to directory containing analog_<n>.bin files
Returns: Capture object with analog data loaded from files
classmethod
from_config(config: CaptureConfig, dir_path: Path) -> Capture
Create a Capture from a CaptureConfig by reading the files in it's save directory
delete()
Delete the capture files from the disk
AI/LLM users: see llms-mso-api.txt for machine-readable documentation.