Ignore:
Timestamp:
15/10/18 10:56:37 (12 months ago)
Author:
mjuckes
Message:

01.00.28

File:
1 edited

Legend:

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

    r1259 r1265  
    6868    self.sc = sc 
    6969    self.exptMipRql = collections.defaultdict( set ) 
     70    if exptFilter != None: 
     71      assert type( exptFilter ) == type( set() ), 'FATAl.vsum.001: exptFilter argument must be type set: %s' % type( exptFilter ) 
    7072    for i in self.sc.dq.coll['requestLink'].items: 
    7173      expts = requestLink__expt(i,rql=[i.uid,]) 
     74      if exptFilter != None: 
     75        expts = exptFilter.intersection( expts ) 
    7276      for e in expts: 
    7377        self.exptMipRql[ (i.mip,self.sc.dq.inx.uid[e].label) ].add( i.uid) 
Note: See TracChangeset for help on using the changeset viewer.