Changeset 914 for CMIP6dreqbuild


Ignore:
Timestamp:
21/12/16 17:20:30 (3 years ago)
Author:
mjuckes
Message:

python portability update

File:
1 edited

Legend:

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

    r912 r914  
    10521052 
    10531053    if self.intersection and type(mip) == type( set() ) and len(mip) > 1: 
    1054       sint = {k for k in mipsByVar if len( mipsByVar[k] ) == len(mip)} 
     1054      sint = set( [k for k in mipsByVar if len( mipsByVar[k] ) == len(mip)] ) 
    10551055      print ( 'INTERSECTION: %s out of %s variables [%s]' % (len(sint),len(mipsByVar.keys()),str(mip)) ) 
    10561056      xxx = [t for t in cc if t[0] not in sint] 
Note: See TracChangeset for help on using the changeset viewer.