pg_utils.pg_model.base.LabeledSubCollection

class pg_utils.pg_model.base.LabeledSubCollection(base_collection: LabeledCollection, sub_slice)[source]

Bases: object

Base class that gives a subset of the labeled collection.

LabeledSubCollection, similar to LabeledCollection, implements the following operations:

  • indexing by integer; in other words, it is sorted;

  • indexing by string; in other words, it is labeled;

In addition, LabeledSubCollection supports the following operations:

  • iteration: the object can be traversed as an iterator.

Since the day I built this class, I have almost never found this class useful. Perhaps we can remove it in a later version?

__init__(base_collection: LabeledCollection, sub_slice) None[source]

Initialization

Methods

__init__(base_collection, sub_slice)

Initialization

Attributes

iter_filter

iter_filter: bool determines whether None fields are skipped.

iter_name

iter_name: bool determines whether the string of the field is also returned.

property iter_filter[source]

iter_filter: bool determines whether None fields are skipped.

property iter_name[source]

iter_name: bool determines whether the string of the field is also returned.