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

for python3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreq/trunk/dreqPy/examples/ex002.py

    r626 r738  
    88      import dreq 
    99    else: 
    10       print 'No dreq.py in specified directory' 
     10      print ( 'No dreq.py in specified directory' ) 
    1111      sys.exit(0) 
    1212  else: 
    13     print 'Specified directoty does not exist' 
     13    print  ('Specified directoty does not exist' ) 
    1414    sys.exit(0) 
    1515else: 
     
    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.