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).
◆ addAttribute()
| def dectris.albula.DNeXusGroup.addAttribute |
( |
|
name | ) |
|
Add new attribute.
- Parameters
-
- Returns
- DNeXusAttribute referencing the new attribute
◆ addDataset()
| def dectris.albula.DNeXusGroup.addDataset |
( |
|
name | ) |
|
Add new dataset.
- Parameters
-
- Returns
- DNeXusData referencing the new dataset
◆ addSubGroup()
| def dectris.albula.DNeXusGroup.addSubGroup |
( |
|
name | ) |
|
Add new subgoup.
- Parameters
-
- Returns
- DNeXusGroup referencing the new subgroup
◆ attribute()
| 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
◆ attributes()
| def dectris.albula.DNeXusGroup.attributes |
( |
| ) |
|
◆ childElement()
| 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
◆ children()
| 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
◆ dataset()
| 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
◆ datasets()
| def dectris.albula.DNeXusGroup.datasets |
( |
| ) |
|
Return list of datasets.
- Returns
- python list of DNeXusData objects
◆ eraseChild()
| def dectris.albula.DNeXusGroup.eraseChild |
( |
|
name | ) |
|
Remove the child with the given name.
- Parameters
-
| name | String with the name of the child to erase |
◆ subGroup()
| 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
◆ subGroups()
| def dectris.albula.DNeXusGroup.subGroups |
( |
| ) |
|
Return list of subgroups.
- Returns
- python list of DNeXusGroup objects