|
pyCAPS
pyCAPS: A Python Extension Module for CAPS
|
Defines a Sequence of CAPS Attribute Value Objects. More...


Public Member Functions | |
| create (self, name, data, overwrite=False) | |
| Create an attribute (that is meta-data) to the CAPS Object. | |
Public Member Functions inherited from Sequence | |
| keys (self) | |
| Returns the keys of the Sequence. | |
| values (self) | |
| Returns the values of the Sequence. | |
| items (self) | |
| Returns the items of the Sequence. | |
Defines a Sequence of CAPS Attribute Value Objects.
| create | ( | self, | |
| name, | |||
| data, | |||
overwrite = False |
|||
| ) |
Create an attribute (that is meta-data) to the CAPS Object.
See example
| name | Name used to define the attribute. |
| data | Initial data value(s) for the attribute. Note that type casting in done automatically based on the determined type of the Python object. |
| overwrite | Flag to overwrite any existing attribute with the same 'name' |