Ignore:
Timestamp:
17/06/16 13:48:44 (4 years ago)
Author:
mjuckes
Message:

near release

File:
1 edited

Legend:

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

    r677 r680  
    263263 
    264264class xlsTabs(object): 
    265   def __init__(self,sc,tiermax=1,pmax=1,xls=True, txt=False, txtOpts=None): 
     265  def __init__(self,sc,tiermax=1,pmax=1,xls=True, txt=False, txtOpts=None, odir='xls'): 
    266266    self.pmax=pmax 
    267267    self.tiermax=tiermax 
     
    276276    self.mipsp = ['DECK','CMIP6',] + self.mips[:-4] 
    277277 
    278     self.tabs = makeTables.tables( sc, self.mips, xls=xls, txt=txt, txtOpts=txtOpts ) 
    279  
    280   def run(self,m,colCallback=None,verb=False,mlab=None): 
     278    self.tabs = makeTables.tables( sc, self.mips, xls=xls, txt=txt, txtOpts=txtOpts, odir=odir ) 
     279 
     280  def run(self,m,colCallback=None,verb=False,mlab=None,exid=None): 
    281281      if m == 'TOTAL': 
    282282        l1 = self.sc.rqiByMip( set( self.mips ) ) 
     
    300300        else: 
    301301          xx = [i for i in self.dq.coll['experiment'].items if i.mip == m2] 
     302        if exid != None: 
     303          xxx = [i for i in xx if i.uid == exid] 
     304          if len(xxx) == 0: 
     305            break 
     306          xx = xxx 
    302307        self.cc[mlab].ee[m2] = xx 
    303308        xxi = set( [i.label for i in xx] ) 
Note: See TracChangeset for help on using the changeset viewer.