dbtree= pyCGNS("SquaredNozzle-05.cgns")
mypath= Path("/Base",bdtree)
dbadf = mypath.getADF()
nodeid= mypath.extract()[0][1]
node = Node(nodeid,dbadf.get_root_id(nodeid))
print node.id
print node.name
print node.label
print node.ndim
print node.vdim
print node.type
print node.children
del mypath
dbtree.close()
del dbtree
In that case, an output would be something like:
2.04345703128
Base
CGNSBase_t
1
(2,)
I4
('Zone-001', 'Zone-002', 'Zone-003', 'Zone-004',
'Zone-005', 'Zone-006', 'Zone-007', 'Zone-008', 'Attributes')