pingwyn.core.types.curve.Curve
- class pingwyn.core.types.curve.Curve(arr, metadata={})
Bases:
ndarrayA container for a x,y-curve.
This class extends numpy.ndarray, meaning that the curve data can be accessed as if it were a numpy array. The metadata attribute houses additional information for the physical experiment that was performed.
A Curve object has a 2xN shape, where N is the amount of data points present in the curve. Row 0 houses the points that make up the x-axis and row 1 houses the measured channel data (i.e y-axis). In other words:
curve[0, :] - x-axis curve[1, :] - y-axis
- metadata
A dictionary containing relevant metadata, such as setpoints, channel name, units and referenced files.
- Type:
dict
- __init__(*args: Any, **kwargs: Any) None
Methods
Attributes
metadata