Container#
- class caput.containers.Container(*args: Any, **kwargs: Any)[source]#
Bases:
caput.memdata.MemDiskGroupBasic high level data container.
Basic one-level data container that allows any number of datasets in the root group but no nesting. Data history tracking (in
history) and array axis interpretation (inindex_map) is also provided.Instead of subclassing this directly, most use casees will be better served by subclassing
ContainerPrototype, which provides additional facilities to simplify the specification of container datasets and axes. This class is intended to be more flexible - datasets can be added or deleted arbitrarily.Notes
Parameters are passed through to the
MemDiskGroupconstructor.- property history: caput.memdata.ro_dict[source]#
Stores the analysis history for this data.
Do not try to add a new entry by assigning to an element of this property. Use
add_history()instead.- Returns:
- history
ro_dict Each entry is a dictionary containing metadata about that stage in history. There is also an ‘order’ entry which specifies how the other entries are ordered in time.
- history
- property index_attrs: caput.memdata.ro_dict[source]#
Exposes the attributes of each index_map entry.
Allows the user to implement custom behaviour associated with the axis. Assignment to this dictionary does nothing but it does allow attribute values to be changed.
- Returns:
- index_attrs
ro_dict Attribute dicts for each index_map entry.
- index_attrs
- property index_map: caput.memdata.ro_dict[source]#
Stores representions of the axes of datasets.
The index map contains arrays used to interpret the axes of the various datasets. For instance, the ‘time’, ‘prod’ and ‘freq’ axes of the visibilities are described in the index map.
Do not try to add a new index_map by assigning to an item of this property. Use
create_index_map()instead.- Returns:
- index_map
ro_dict Entries are 1D arrays used to interpret the axes of datasets.
- index_map
- property reverse_map: caput.memdata.ro_dict[source]#
Stores mappings between
index_mapentries.Do not try to add a new reverse_map by assigning to an item of this property. Use
create_reverse_map()instead.- Returns:
- reverse_map
ro_dict Entries are 1D arrays used to map from product index to stack index.
- reverse_map
Methods#
|
Create a new history entry. |
|
Create a new index map. |
|
Create a new reverse map. |
|
Datasets may only be created and accessed in the root level group. |
|
Delete an index map. |
|
Delete an index map. |
|
No groups are exposed to the user. Returns |
|
Redistribute parallel datasets along a specified axis. |