PlasmaCalcs.tools.iterables.ContainerOfList
- class PlasmaCalcs.tools.iterables.ContainerOfList(objs)
Bases:
Containera list-like container.- __init__(objs)
- should set self.data = something related to stuff.
Methods
__init__(objs)enumerate([idx])new_empty([fill])size([idx])- enumerate(idx=None)
- iterate through i in idx, yielding (i, self[i]) pairs.If idx is None, iterate through all objs in self (see self._enumerate_all).
- new_empty(fill=UNSET)
- return a new list of the same shape as self, filled with the value fill.
- size(idx=None)
- return the number of objects in the container, or in idx if provided.