Traces#
Overview#
- class mhi.psout.Trace#
An individual trace stored in the file, identified by run and call.
Trace data is returned as an
array.array(), with an underlying type code specifying byte,intorfloatvalues of various precision.A trace may have an associated
domaintrace, such as time or frequency.Note
Support for
complextraces requires Python >= 3.15. Neitherstrnotblobdata types are supported at this time.
Identification#
- Trace.id#
Returns run handle id
- Trace.call#
Returns the associated call
- Trace.run#
Run trace is from
Data#
- Trace.datatype#
Trace datatype (
int,float, …)
- property Trace.data_type: DataType#
The PSOUT version data type of values contained in the trace.
This data type distinguishes the resolution of underlying data stored in the trace. Where
datatypewill only return the general Python type (int,float,complex, …), this attribute reveals the actual size (number of bits) used to store the data, and for integers whether or not they are signed or unsigned.Added in version 2.0.
- Trace.data#
Returns the sample values
- Trace.size#
Returns the size