weldx.measurement.MeasurementChain#
- class weldx.measurement.MeasurementChain(name, source, signal_data=None)#
Class that represents a measurement chain.
Create a new measurement chain.
- Parameters:
name (
str
) – Name of the measurement chainsource (
SignalSource
) – The source of the measurement chainsignal_data (
Optional
[TimeSeries
]) – Measured data of the sources’ signal
Examples
>>> from weldx import Q_ >>> from weldx.measurement import Error, MeasurementChain, Signal, SignalSource
Create a signal source
>>> current_source = SignalSource(name="Current sensor", ... error=Error(Q_(0.1, "percent")), ... output_signal=Signal(signal_type="analog", ... units="V") ... )
Create a measurement chain using the source
>>> mc = MeasurementChain(name="Current measurement chain", ... source=current_source ... )
Methods
Add data to a signal.
Add a transformation from an SignalTransformation instance.
Add a transformation from a piece of equipment.
Create and add a transformation to the measurement chain.
Create a measurement chain from a dictionary.
Create a measurement chain from a piece of equipment that contains a source.
Create a new measurement chain without providing a SignalSource instance.
Get the equipment that produced a signal.
Get a signal.
Get the data from a signal.
Get a transformation.
Plot the measurement chain.
Get the content of the measurement chain as dictionary.
Attributes
Get the output signal of the measurement chain.
Get a list of all signals.
Return the source of the measurement chain.
Get the name of the source.
Get the names of all transformations.
Get a list of all transformations.