Ignore:
Timestamp:
20/01/16 17:01:33 (5 years ago)
Author:
mjuckes
Message:

cleaning CMOR tables

File:
1 edited

Legend:

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

    r554 r555  
    7373    fss = '%s-%s_%s_%s.html' % (m,m2,self.tiermax, self.pmax) 
    7474    oo = open( 'tabs03/%s' % fss, 'w' ) 
    75     ttl = 'Date requested by %s from %s experiments' % (m,m2) 
     75    ttl = 'Date requested by %s from %s experiments (tier %s, priority %s' % (m,m2,self.tiermax,self.pmax) 
    7676    jsh = '' 
    77     bdy = '<p>All variables in one <a href="../data/tabs02/%s-%s_%s_%s.xlsx">Excel file</a></p>\n' % (m,m2,self.tiermax, self.pmax) 
     77    bdy = '<h1>%s</h1>\n' % ttl 
     78    bdy += '<p>All variables in one <a href="../data/tabs02/%s-%s_%s_%s.xlsx">Excel file</a></p>\n' % (m,m2,self.tiermax, self.pmax) 
    7879 
    7980    bdy += '<table>\n' 
     81    bdy += '<tr><th>Experiment</th><th>Volume (and link to variable lists)</th></tr>\n' 
    8082    for i in self.cc[m].ee[m2]: 
    8183      x = self.cc[m].a[i.uid]*2. 
     
    148150              llh.append( '<a title="Excel variable list: %s" href="data/tabs02/%s">%s</a>' % (sm,fn,s) ) 
    149151          except: 
    150             print 'Failed to compute element: %s,%s  %s' % (m,m2, str(self.cc[m].a[m2]) ) 
     152            print ( 'Failed to compute element: %s,%s  %s' % (m,m2, str(self.cc[m].a[m2]) ) ) 
    151153            raise 
    152154       else: 
     
    184186        assert x[0] == xs, 'ERROR.0088: consistency problem %s  %s %s %s' % (m,m2,x[0],xs) 
    185187        if m == 'FAFMIP' and m2 == 'DECK': 
    186           print 'FAFMIP [1]:: ',x[1].keys() 
    187           print 'FAFMIP [2]:: ',collector['_FAFMIP_DECK'].a.keys() 
     188          print ( 'FAFMIP [1]:: %s' % str(x[1].keys() ) ) 
     189          print ( 'FAFMIP [2]:: %s' % str( collector['_FAFMIP_DECK'].a.keys() ) ) 
    188190 
    189191        if acc: 
Note: See TracChangeset for help on using the changeset viewer.