class DNeXusGroup represents a group in the NeXus tree.
More...
Public Member Functions | |
| def | childElement (name) |
Return Child element with given name. More... | |
| def | eraseChild (name) |
| Remove the child with the given name. More... | |
| def | subGroup (name) |
Return subgroup with given name. More... | |
| def | addSubGroup (name) |
| Add new subgoup. More... | |
| def | dataset (name) |
Return dataset with given name. More... | |
| def | addDataset (name) |
| Add new dataset. More... | |
| def | attribute (name) |
Return attribute with given name. More... | |
| def | addAttribute (name) |
| Add new attribute. More... | |
| def | children (recursive=False) |
| Return list of child elements. More... | |
| def | subGroups () |
| Return list of subgroups. More... | |
| def | datasets () |
| Return list of datasets. More... | |
| def | attributes () |
| Return list of attributes. More... | |
Public Member Functions inherited from dectris.albula.DNeXusNode | |
| def | path () |
| path() returns the full NeXus path. More... | |
| def | name () |
Name of NeXus node. More... | |
| def | type () |
NeXus Type More... | |
| def | parent () |
Parent NeXus Node. More... | |
class DNeXusGroup represents a group in the NeXus tree.
Groups may contain children, which are either groups or datasets (DNeXusData). In addition groups may contain attributes (DNeXusAttribute).
| def dectris.albula.DNeXusGroup.addAttribute | ( | name | ) |
Add new attribute.
| name | of the attribute |
| def dectris.albula.DNeXusGroup.addDataset | ( | name | ) |
| def dectris.albula.DNeXusGroup.addSubGroup | ( | name | ) |
| def dectris.albula.DNeXusGroup.attribute | ( | name | ) |
Return attribute with given name.
If the attribute does not exist a DOutOfRangeException is thrown.
| name | of the attribute |
| def dectris.albula.DNeXusGroup.attributes | ( | ) |
Return list of attributes.
| def dectris.albula.DNeXusGroup.childElement | ( | name | ) |
Return Child element with given name.
If the child does not exist a DOutOfRangeException is thrown.
| name | of the child element or path to childElement. |
| def dectris.albula.DNeXusGroup.children | ( | recursive = False | ) |
Return list of child elements.
| recursive | If True return all children and grandchildren else return only direct descendants |
| def dectris.albula.DNeXusGroup.dataset | ( | name | ) |
Return dataset with given name.
If the dataset does not exist a DOutOfRangeException is thrown.
| name | of the dataset |
| def dectris.albula.DNeXusGroup.datasets | ( | ) |
Return list of datasets.
| def dectris.albula.DNeXusGroup.eraseChild | ( | name | ) |
Remove the child with the given name.
| name | String with the name of the child to erase |
| def dectris.albula.DNeXusGroup.subGroup | ( | name | ) |
Return subgroup with given name.
If the subgroup does not exist a DOutOfRangeException is thrown.
| name | of the subgroup |
| def dectris.albula.DNeXusGroup.subGroups | ( | ) |
Return list of subgroups.