Ignore:
Timestamp:
02/12/16 18:08:59 (3 years ago)
Author:
mjuckes
Message:

release candidate

File:
1 edited

Legend:

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

    r711 r885  
    5151  #for j in dq.inx.iref_by_sect[i].a['requestLink']: 
    5252    #s2.add(j) 
    53     s2 = reduce( operator.or_, [set(dq.inx.iref_by_sect[i].a['requestLink']) for i in s1 if dq.inx.iref_by_sect[i].a.has_key('requestLink')] ) 
     53    s2 = reduce( operator.or_, [set(dq.inx.iref_by_sect[i].a['requestLink']) for i in s1 if 'requestLink' in dq.inx.iref_by_sect[i].a] ) 
    5454 
    5555    mips = set( [dq.inx.uid[i].mip for i in s2 ] ) 
     
    7979    s2 = set() 
    8080    for i in cc1: 
    81       if dq.inx.iref_by_sect[i].a.has_key('requestLink'): 
     81      if 'requestLink' in dq.inx.iref_by_sect[i].a: 
    8282        for l in dq.inx.iref_by_sect[i].a['requestLink']: 
    8383          lr = dq.inx.uid[l] 
     
    8888          else: 
    8989            s2.add( l ) 
    90     ##ll = [set(dq.inx.iref_by_sect[i].a['requestLink']) for i in cc1 if dq.inx.iref_by_sect[i].a.has_key('requestLink')] 
     90    ##ll = [set(dq.inx.iref_by_sect[i].a['requestLink']) for i in cc1 if 'requestLink' in dq.inx.iref_by_sect[i].a] 
    9191    ##if len(ll) == 0: 
    9292      ##return set() 
Note: See TracChangeset for help on using the changeset viewer.