weldx.TimeSeries#
- class weldx.TimeSeries(data, time=None, interpolation=None, reference_time=None)#
Describes the behaviour of a quantity in time.
Construct a TimSeries.
- Parameters:
data (
Union
[Quantity
,MathematicalExpression
]) – Either a pint.Quantity or a weldx.MathematicalExpression. If a mathematical expression is chosen, it is only allowed to have a single free variable, which represents time.time (
Union
[DatetimeIndex
,datetime64
,List
[str
],Time
,TimedeltaIndex
,Quantity
,timedelta64
,Timestamp
,str
,TimeDependent
,None
]) – An instance of pandas.TimedeltaIndex if a quantity is passed and ‘None’ otherwise.interpolation (
Optional
[str
]) – A string defining the desired interpolation method. This is only relevant if a quantity is passed as data. Currently supported interpolation methods are: ‘step’, ‘linear’.
Methods
Interpolate the TimeSeries in time.
Plot the
TimeSeries
.Attributes
Return the data of the TimeSeries.
Return the internal data as 'xarray.DataArray'.
Return the interpolation.
Return
True
if the time series is described by discrete values.Return
True
if the time series is described by an expression.Get the reference time.
Return the shape of the TimeSeries data.
Return the data's timestamps.
Return the units of the TimeSeries Data.