Changeset 771 for CMIP6dreqbuild


Ignore:
Timestamp:
11/10/16 11:17:10 (3 years ago)
Author:
mjuckes
Message:

python 2.6 compatibility

File:
1 edited

Legend:

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

    r770 r771  
    12401240      for i in l1: 
    12411241        if 'requestItem' in self.dq.inx.iref_by_sect[i.uid].a: 
    1242           prs = {self.dq.inx.uid[x].preset for x in self.dq.inx.iref_by_sect[i.uid].a['requestItem']} 
     1242          prs = set() 
     1243          for x in self.dq.inx.iref_by_sect[i.uid].a['requestItem']: 
     1244             prs.add(self.dq.inx.uid[x].preset) 
     1245 
    12431246          for p in prs: 
    1244             assert p in {-1,1,2,3}, 'Bad preset value' 
     1247            assert p in [-1,1,2,3], 'Bad preset value' 
    12451248            cc[p].add( i.refid ) 
    12461249      ee = {} 
Note: See TracChangeset for help on using the changeset viewer.