Ignore:
Timestamp:
21/12/16 22:16:53 (3 years ago)
Author:
mjuckes
Message:

01.00.00

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreq/trunk/dreqPy/scope.py

    r910 r916  
    6161    tsll = sorted( list(tsl), key=lambda x: x[0][3] ) 
    6262    if min( [x[0][2] for x in tsll] ) == tsll[-1][0][2]: 
    63         return (1,tsll[0][-1], 'Taking largest slice') 
     63        return (1,tsll[-1], 'Taking largest slice') 
    6464    return (-4,None, 'Cannot sort slices') 
    6565 
     
    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.