TimeSeriesBaseList#
- class gwpy.timeseries.TimeSeriesBaseList(*items: _T)[source]#
-
Fancy list representing a list of
TimeSeriesBase.The
TimeSeriesBaseListprovides an easy way to collect and organiseTimeSeriesBasefor a singleChannelover multiple segments.- Parameters:
- items
Any number of
TimeSeriesBase.
- Returns:
listA new
TimeSeriesBaseList.
- Raises:
TypeErrorif any elements are not
TimeSeriesBase
Attributes Summary
The
spanof each series in this list.Methods Summary
append(item)Append object to the end of the list.
coalesce()Merge contiguous elements of this list into single objects.
copy()Return a copy of this list with each element copied to new memory.
extend(item)Extend list by appending elements from the iterable.
join([pad, gap])Concatenate all of the elements of this list into a single object.
Attributes Documentation
Methods Documentation
- coalesce() Self[source]#
Merge contiguous elements of this list into single objects.
This method implicitly sorts and potentially shortens this list.
- join( ) _T[source]#
Concatenate all of the elements of this list into a single object.
- Parameters:
- pad
float, optional Value with which to fill gaps in the source data, by default gaps will result in a
ValueError.- gap
str, optional What to do if there are gaps in the data, one of
'raise'Raise a
ValueError'ignore'Remove gap and join data
'pad'Pad gap with zeros
If
padis given and is notNone, the default is'pad', otherwise'raise'.
- pad
- Returns:
- series
gwpy.types.TimeSeriesBasesubclass A single series containing all data from each entry in this list.
- series
See also
TimeSeries.appendFor details on how the individual series are concatenated together.