ltbio.pipeline.Packet#
Overview#
Classes#
- |
Contents#
- class ltbio.pipeline.Packet.Packet(**load)#
- property contents: dict#
- property has_multiple_timeseries: bool#
Be very careful when using this checkers. Correct use case: To know if the Packet contains 2 or more Timeseries
- property has_single_timeseries: bool#
Be very careful when using this checkers. Correct use case: To know if the Packet contains 1 and only 1 Timeseries Incorrect use case: To know if ‘timeseries’ is not a collection. Instead, use !has_timeseries_collection.
- property has_timeseries: bool#
Be very careful when using this checkers. Correct use case: To know if there’s any Timeseries in the Packet.
- property has_timeseries_collection: bool#
Be very careful when using this checkers. Correct use case: To know if the timeseries, if any, in the Packet were packed/delivered collectively. This holds True even if the collection only has 1 element; it’s still a collection. Incorrect use case: To know if there’s a plurality of Timeseries. Use ‘has_multiple_timeseries’ instead.
- property timeseries: Timeseries | Dict[str, Timeseries]#
Get (all) Timeseries as they were packed, either alone or in collection.
- property who_packed#
- TIMESERIES_LABEL = 'timeseries'#
- static join_packets(**packets)#
Receives multiple packets keyed by the prefix for each, in case there are conflicts in labels. Returns 1 Packet.