ALBULA  4.0.1
 All Classes Namespaces Functions Variables Pages
dectris.albula.DNeXusGroup Class Reference

class DNeXusGroup represents a group in the NeXus tree. More...

Inheritance diagram for dectris.albula.DNeXusGroup:
dectris.albula.DNeXusNode

Public Member Functions

def childElement
 Return Child element with given name. More...
 
def eraseChild
 Remove the child with the given name. More...
 
def subGroup
 Return subgroup with given name. More...
 
def addSubGroup
 Add new subgoup. More...
 
def dataset
 Return dataset with given name. More...
 
def addDataset
 Add new dataset. More...
 
def attribute
 Return attribute with given name. More...
 
def addAttribute
 Add new attribute. More...
 
def children
 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...
 

Detailed Description

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).

Member Function Documentation

def dectris.albula.DNeXusGroup.addAttribute (   name)

Add new attribute.

Parameters
nameof the attribute
Returns
DNeXusAttribute referencing the new attribute
def dectris.albula.DNeXusGroup.addDataset (   name)

Add new dataset.

Parameters
nameof the dataset
Returns
DNeXusData referencing the new dataset
def dectris.albula.DNeXusGroup.addSubGroup (   name)

Add new subgoup.

Parameters
nameof the subgroup
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
nameof the attribute
Returns
DNeXusAttribute referencing attribute
def dectris.albula.DNeXusGroup.attributes ( )

Return list of attributes.

Returns
python list of DNeXusAttribute objects
def dectris.albula.DNeXusGroup.childElement (   name)

Return Child element with given name.

If the child does not exist a DOutOfRangeException is thrown.

Parameters
nameof 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
recursiveIf 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
nameof the dataset
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
nameString 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
nameof the subgroup
Returns
DNeXusGroup referencing subgroup
def dectris.albula.DNeXusGroup.subGroups ( )

Return list of subgroups.

Returns
python list of DNeXusGroup objects