10.2. ALBULA HDF5 Python Library
The following examples illustrate how the data stored in HDF5 les by the EIGER2 detector can be manipulated
with ALBULA.
10.2.1. Getting Started
[]$_ Example ALBULA
#!/usr/bin/python
### import the dectris.albula image library ###
import sys
sys.path.insert(0,"/usr/local/dectris/python")
import dectris.albula as albula
def iterateChildren(node,nodeList=[]):
""" iterates over the children of a neXus node """
if node.type() == albula.GROUP:
for kid in node.children():
nodeList = iterateChildren(kid,nodeList)
else:
nodeList.append(node)
return nodeList
### open the albula viewer ###
m = albula.openMainFrame()
s = m.openSubFrame()
DECTRIS EIGER
®
2 User Manual v1.8.2 30 | 36