Ignore:
Timestamp:
18/08/16 02:18:05 (4 years ago)
Author:
mjuckes
Message:

for python 3 ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreqbuild/trunk/src/framework/dreqPy/examples/ex002.py

    r736 r739  
    2121 
    2222dcppLinks = [x for x in dq.coll['requestLink'].items if x.mip == 'DCPP'] 
    23 print 'Request links found for DCPP: %s' % len( dcppLinks ) 
     23print ('Request links found for DCPP: %s' % len( dcppLinks ) ) 
    2424 
    2525dcppRequestedGroups = set( [dq.inx.uid[x.refid] for x in dcppLinks] ) 
    26 print 'Request groups found for DCPP: %s' % len( dcppRequestedGroups ) 
     26print ('Request groups found for DCPP: %s' % len( dcppRequestedGroups ) ) 
    2727 
    2828dcppRequestedCmorVars = set() 
     
    3030   for x in dq.inx.iref_by_sect[vg.uid].a['requestVar']: 
    3131       dcppRequestedCmorVars.add( dq.inx.uid[x].vid ) 
    32 print 'Requested CMOR Variables found for DCPP: %s' % len( dcppRequestedCmorVars ) 
     32print ('Requested CMOR Variables found for DCPP: %s' % len( dcppRequestedCmorVars ) ) 
    3333 
Note: See TracChangeset for help on using the changeset viewer.