class DNeXusGroup represents a group in the NeXus tree.
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.
- Parameters
-
- Returns
- DNeXusAttribute referencing the new attribute
| def dectris.albula.DNeXusGroup.addDataset |
( |
|
name | ) |
|
Add new dataset.
- Parameters
-
- Returns
- DNeXusData referencing the new dataset
| def dectris.albula.DNeXusGroup.addSubGroup |
( |
|
name | ) |
|
Add new subgoup.
- Parameters
-
- Returns
- DNeXusGroup referencing the new subgroup
| def dectris.albula.DNeXusGroup.attribute |
( |
|
name | ) |
|
Return attribute with given name.
If the attribute does not exist a DOutOfRangeException is thrown.
- Parameters
-
- Returns
- DNeXusAttribute referencing attribute
| def dectris.albula.DNeXusGroup.attributes |
( |
| ) |
|
| def dectris.albula.DNeXusGroup.childElement |
( |
|
name | ) |
|
Return Child element with given name.
If the child does not exist a DOutOfRangeException is thrown.
- Parameters
-
| name | of the child element or path to childElement. |
- Returns
- DNeXusNode referencing the child element
| def dectris.albula.DNeXusGroup.children |
( |
|
recursive = False | ) |
|
Return list of child elements.
- Parameters
-
| recursive | If True return all children and grandchildren else return only direct descendants |
- Returns
- python list of DNeXusNode objects
| def dectris.albula.DNeXusGroup.dataset |
( |
|
name | ) |
|
Return dataset with given name.
If the dataset does not exist a DOutOfRangeException is thrown.
- Parameters
-
- Returns
- DNeXusGroup referencing dataset
| def dectris.albula.DNeXusGroup.datasets |
( |
| ) |
|
Return list of datasets.
- Returns
- python list of DNeXusData objects
| def dectris.albula.DNeXusGroup.eraseChild |
( |
|
name | ) |
|
Remove the child with the given name.
- Parameters
-
| 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.
- Parameters
-
- Returns
- DNeXusGroup referencing subgroup
| def dectris.albula.DNeXusGroup.subGroups |
( |
| ) |
|
Return list of subgroups.
- Returns
- python list of DNeXusGroup objects