Changeset 873


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

switch added in vsum.analAll to prevent unnecessary production of html fields under --sf option

Location:
CMIP6dreqbuild/trunk/src/framework/dreqPy
Files:
3 edited

Legend:

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

    r861 r873  
    11 
    2 import collections, string 
     2import collections, string, os 
    33import xlsxwriter 
    44 
     
    136136    if len( self.cc[kc].a.keys() ) == 0: 
    137137      return 
     138    if not os.path.isdir( 'tabs03' ): 
     139      print ( 'WARNING.makeMMhtml: creating directory for html files: tabs03' ) 
     140      os.mkdir( 'tabs03' ) 
    138141    oo = open( 'tabs03/%s' % fss, 'w' ) 
    139142    ttl = 'Date requested by %s from %s experiments (tier %s, priority %s)' % (m,m2,self.tiermax,self.pmax) 
  • CMIP6dreqbuild/trunk/src/framework/dreqPy/scope.py

    r871 r873  
    15821582      vs.run( self.adict['m'], 'requestVol_%s_%s_%s' % (mlab,tierMax,pmax), pmax=pmax )  
    15831583      vs.anal(olab=mlab,doUnique=False) 
    1584       vs.analAll(pmax,mips=self.adict['m']) 
     1584      vs.analAll(pmax,mips=self.adict['m'],html=False) 
    15851585      ttl = sum( [x for k,x in vs.res['vu'].items()] )*2.*1.e-12 
    15861586      ttl2 = sum( [x for k,x in vs.res['vu'].items()] )*2.*1.e-12 
  • CMIP6dreqbuild/trunk/src/framework/dreqPy/volsum.py

    r871 r873  
    7676    ii.close() 
    7777 
    78   def analAll(self,pmax,mips=None): 
     78  def analAll(self,pmax,mips=None,html=True): 
    7979      volsmm={} 
    8080      volsmmt={} 
     
    101101          cmvTotal = self.sc.selectedCmv.copy() 
    102102          self.uniqueCmv =  {} 
    103       r1 = overviewTabs.r1( self.sc, self.mt_tables, pmax=pmax, vols=( volsmm, volsme, volsmmt,volsue ) ) 
     103      if html: 
     104        r1 = overviewTabs.r1( self.sc, self.mt_tables, pmax=pmax, vols=( volsmm, volsme, volsmmt,volsue ) ) 
    104105 
    105106  def _analSelectedCmv(self,cmv): 
Note: See TracChangeset for help on using the changeset viewer.