piel.experimental.devices.DPO73304#
This corresponds to a Tectronic Digital Oscilloscope
Submodules#
Classes#
This represents the fundamental data structure of an element in connectivity |
Functions#
|
Extracts the measurement files from a csv file and returns it as a pandas dataframe. |
This function is used to extract the relevant measurement files amd relate them to the sweep parameter. Because |
|
This function is used to extract the relevant measurement files amd relate them to the sweep parameter. Because |
|
|
Extracts the waveform files from a csv file and returns it as a pandas dataframe. |
|
Extracts the waveform files from a csv file and returns it as a DataTimeSignal that can be used to analyse the signal with other methods. |
Extracts the measurement files from a csv file and returns it as a SignalMeasurement that can be used to analyse the signal. |
|
|
Extracts the waveform files from a list of csv files and returns it as a MultiTimeSignalData that can be used to analyse the signals together. |
|
Parses a column name to extract the analysis type, unit, and channel information. |
Package Contents#
- extract_measurement_to_dataframe(file: piel.types.PathTypes) pandas.DataFrame[source]#
Extracts the measurement files from a csv file and returns it as a pandas dataframe.
- Parameters:
file (PathTypes) – The path to the csv file.
- Returns:
The measurement files as a pandas dataframe.
- Return type:
pd.DataFrame
- extract_oscilloscope_data_from_measurement(oscilloscope_measurement: piel.types.experimental.OscilloscopeMeasurement) piel.types.experimental.OscilloscopeMeasurementData[source]#
- extract_oscilloscope_measurement_data_collection(oscilloscope_measurement_data: piel.types.experimental.OscilloscopeMeasurementData) piel.types.experimental.OscilloscopeMeasurementDataCollection[source]#
This function is used to extract the relevant measurement files amd relate them to the sweep parameter. Because this function extracts multi-index files then we use xarray to analyze this files more clearly. It aims to extract all the files in the sweep file collection.
- extract_propagation_delay_data_from_measurement(propagation_delay_measurement: piel.types.experimental.PropagationDelayMeasurement) piel.types.experimental.PropagationDelayMeasurementData[source]#
- extract_propagation_delay_measurement_sweep_data(propagation_delay_measurement_sweep: piel.types.experimental.PropagationDelayMeasurementCollection) piel.types.experimental.PropagationDelayMeasurementDataCollection[source]#
This function is used to extract the relevant measurement files amd relate them to the sweep parameter. Because this function extracts multi-index files then we use xarray to analyze this files more clearly. It aims to extract all the files in the sweep file collection.
- extract_waveform_to_dataframe(file: piel.types.PathTypes) pandas.DataFrame[source]#
Extracts the waveform files from a csv file and returns it as a pandas dataframe.
- Parameters:
file (PathTypes) – The path to the csv file.
- Returns:
The waveform files as a pandas dataframe.
- Return type:
pd.DataFrame
- extract_to_data_time_signal(file: piel.types.PathTypes) piel.types.TimeSignalData[source]#
Extracts the waveform files from a csv file and returns it as a DataTimeSignal that can be used to analyse the signal with other methods.
- Parameters:
file (PathTypes) – The path to the csv file.
- Returns:
The waveform files as a DataTimeSignal.
- Return type:
- extract_to_signal_measurement(file: piel.types.PathTypes, **kwargs) piel.types.ScalarMetricCollection[source]#
Extracts the measurement files from a csv file and returns it as a SignalMeasurement that can be used to analyse the signal.
- Parameters:
file (PathTypes)
- Returns:
SignalMetricsMeasurementCollection : dict[str, SignalMetricsData]
- combine_channel_data(channel_file: list[piel.types.PathTypes]) piel.types.MultiTimeSignalData[source]#
Extracts the waveform files from a list of csv files and returns it as a MultiTimeSignalData that can be used to analyse the signals together.
- Parameters:
channel_file (list[PathTypes]) – The list of paths to the csv files.
- Returns:
The waveform files as a MultiTimeSignalData.
- Return type:
MultiTimeSignalData
- parse_column_name(name: str) piel.experimental.devices.DPO73304.types.ParsedColumnInfo[source]#
Parses a column name to extract the analysis type, unit, and channel information.
Expected column name format: <analysis_type>_<channels>__<unit>[_<index>]
Examples
‘delay_ch1_ch2__s_1’ -> analysis_type=’delay’, channels=’ch1_ch2’, unit=’seconds’, index=1 ‘pk-pk_ch2__v’ -> analysis_type=’peak_to_peak’, channels=’ch2’, unit=’V’ ‘neg._duty_cyc_ch2__%’ -> analysis_type=’negative_duty_cycle’, channels=’ch2’, unit=’percent’ ‘amplitude_ch2__v’ -> analysis_type=’amplitude’, channels=’ch2’, unit=’V’
- Parameters:
name (str) – The column name to parse.
- Returns:
An object containing the extracted information.
- Return type:
- Raises:
ValueError – If the column name does not match the expected pattern or contains an unknown analysis type.
- class ParsedColumnInfo(/, **data: Any)[source]#
Bases:
piel.types.InstanceThis represents the fundamental data structure of an element in connectivity
- analysis_type: piel.types.DataTimeSignalAnalysisTypes = 'delay'#
- unit: piel.types.Unit#
- channels: str = ''#
- index: int | None = 0#