nectarchain.data.container.charges_container.ChargesContainers#
- class ChargesContainers(prefix=None, **fields)[source]#
Bases:
TriggerMapContainer- Class representing a ChargesContainers.This class inherits from the
TriggerMapContainerclass and is used to store trigger or slices of data mappings ofChargesContainer.- Attributes:
containers (Field): A field representing the trigger or slices of data mapping of
ChargesContainer.
- Attributes:
- containersField(default=Map(nectarchain.data.container.charges_container.ChargesContainer))
trigger or slices of data mapping of ChargesContainer
- metadict
dict of attached metadata
- prefixstr
Prefix attached to column names when saved to a table or file
Methods
as_dictConvert the
Containerinto a dictionaryfrom_hdf5Reads a container from an HDF5 file.
is_emptyThis method check if the container is empty.
itemsGenerator over (key, value) pairs for the items
keysGet the keys of the container
resetReset all values back to their default values
updateupdate more than one parameter at once (e.g.
update(x=3,y=4)orupdate(**dict_of_values)).validateApply the validate method recursively to all the containers that are mapped within the TriggerMapContainer.
valuesGet the keys of the container
Attributes
containersmetaprefixdefault_prefixfields