gwpy.timeseries.TimeSeriesList(*items)[source]¶Bases: gwpy.timeseries.core.TimeSeriesBaseList
Fancy list representing a list of TimeSeries
The TimeSeriesList provides an easy way to collect and organise
TimeSeries for a single Channel over multiple segments.
*items
any number of
TimeSeries
list
a new
TimeSeriesList
TypeError
if any elements are not
TimeSeries
Attributes Summary
The |
Methods Summary
|
Append object to the end of the list. |
|
Remove all items from list. |
|
Merge contiguous elements of this list into single objects |
|
Return a copy of this list with each element copied to new memory |
|
Return number of occurrences of value. |
|
Extend list by appending elements from the iterable. |
|
Return first index of value. |
|
Insert object before index. |
|
Concatenate all of the elements of this list into a single object |
|
Remove and return item at index (default last). |
|
Remove first occurrence of value. |
|
Reverse IN PLACE. |
|
Stable sort IN PLACE. |
Attributes Documentation
segments¶The span of each series in this list
Methods Documentation
clear(self, /)¶Remove all items from list.
coalesce(self)[source]¶Merge contiguous elements of this list into single objects
This method implicitly sorts and potentially shortens this list.
count(self, value, /)¶Return number of occurrences of value.
index(self, value, start=0, stop=9223372036854775807, /)¶Return first index of value.
Raises ValueError if the value is not present.
insert(self, index, object, /)¶Insert object before index.
join(self, pad=None, gap=None)[source]¶Concatenate all of the elements of this list into a single object
pad : float, optional
value with which to fill gaps in the source data, by default gaps will result in a
ValueError.
gap : str, optional, default: 'raise'
what to do if there are gaps in the data, one of
'raise'- raise aValueError
'ignore'- remove gap and join data
'pad'- pad gap with zerosIf
padis given and is notNone, the default is'pad', otherwise'raise'.
series : gwpy.types.TimeSeriesBase subclass
a single series containing all data from each entry in this list
See also
TimeSeries.appendfor details on how the individual series are concatenated together
pop(self, index=-1, /)¶Remove and return item at index (default last).
Raises IndexError if list is empty or index is out of range.
remove(self, value, /)¶Remove first occurrence of value.
Raises ValueError if the value is not present.
reverse(self, /)¶Reverse IN PLACE.
sort(self, /, *, key=None, reverse=False)¶Stable sort IN PLACE.
EntryClass[source]¶alias of TimeSeries