Ignore:
Timestamp:
01/06/16 06:53:32 (4 years ago)
Author:
mjuckes
Message:

misc

File:
1 edited

Legend:

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

    r658 r667  
    33import collections, string, os 
    44import vrev 
     5 
     6import scope_utils 
     7 
    58try: 
    69    import xlsxwriter 
     
    445448      """*acc* allows accumulation of values to be switched off when called in single expt mode""" 
    446449       
     450      self.verbose = False 
    447451      if mlab == None: 
    448452        mlab = setMlab( m ) 
     453 
     454      cc0 = scope_utils.getExptSum( self.dq, mlab, l1 ) 
     455      ks = sorted( list( cc0.keys() ) ) 
     456      if self.verbose: 
     457        print 'Experiment summary: ',mlab,string.join( ['%s: %s' % (k,len(cc0[k])) for k in ks], ', ' ) 
    449458 
    450459      if m2 in [None, 'TOTAL']: 
     
    459468          cc = collections.defaultdict( int ) 
    460469        for e in self.sc.volByE: 
     470          if self.verbose: 
     471             print 'INFO.mlab....', mlab, e, len( self.sc.volByE[e][2] ) 
    461472          for v in self.sc.volByE[e][2]: 
    462473             cc[v] += self.sc.volByE[e][2][v] 
     
    486497          x0 = x[0] 
    487498 
    488       ##print 'xxxxxzz',mlab,mlab2,'%12.5e' % x[0],x0 
     499      ### print 'xxxxxzz',mlab,mlab2,'%12.5e' % x[0],x0 
    489500      if mlab2 == 'TOTAL' and x0 == 0: 
    490501        print 'no data detected for %s' % mlab 
Note: See TracChangeset for help on using the changeset viewer.