source: CMIP6dreqbuild/trunk/src/framework/vocabDemo.py @ 739

Subversion URL: http://proj.badc.rl.ac.uk/svn/exarch/CMIP6dreqbuild/trunk/src/framework/vocabDemo.py
Revision 739, 259 bytes checked in by mjuckes, 4 years ago (diff)

for python 3 ...

Line 
1
2import dreq
3
4vc = dreq.loadDreq( dreqXML='vocab.xml',configdoc='out/vocabDefn.xml' )
5
6
7print ( vc.coll.keys() )
8print ( vc.coll['institute'].attDefn.keys() )
9for r in  vc.coll['institute'].items:
10   print ( '%20s: %s [%s]' % (r.label,r.description,r.isni) )
Note: See TracBrowser for help on using the repository browser.