FieldWrapperList#
- class lsst.ts.watcher.FieldWrapperList#
Bases:
objectA sequence of field wrappers.
Provides convenient methods for extracting data.
- field_wrappers#
List of field wrappers.
- Type:
Methods Summary
add_wrapper(field_wrapper)Add a field wrapper to the collection.
get_data([omit_nan, max_age])Return the current data, optionally with an age limit.
Methods Documentation
- add_wrapper(field_wrapper)#
Add a field wrapper to the collection.
- Parameters:
field_wrapper (
BaseFilteredFieldWrapper) – Field wrapper to add to the collection.
- get_data(omit_nan=True, max_age=None)#
Return the current data, optionally with an age limit.
Field wrappers that have not yet seen any data are omitted.
- Parameters:
- Returns:
data – A list of tuples, each of which is:
value: scalar value
wrapper: the field wrapper the value came from
value_index: index of the value in
wrapper.value, orNoneifwrapper.valueis a scalar.
- Return type: