PlasmaCalcs.tools.iterables.ContainerOfDict
- class PlasmaCalcs.tools.iterables.ContainerOfDict(d)
Bases:
Containera dict-like container.- __init__(d)
- should set self.data = something related to stuff.
Methods
__init__(d)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 dict 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.