Changeset 555 for CMIP6dreqbuild/trunk/src/framework/overviewTabs.py
- Timestamp:
- 20/01/16 17:01:33 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMIP6dreqbuild/trunk/src/framework/overviewTabs.py
r554 r555 73 73 fss = '%s-%s_%s_%s.html' % (m,m2,self.tiermax, self.pmax) 74 74 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) 76 76 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) 78 79 79 80 bdy += '<table>\n' 81 bdy += '<tr><th>Experiment</th><th>Volume (and link to variable lists)</th></tr>\n' 80 82 for i in self.cc[m].ee[m2]: 81 83 x = self.cc[m].a[i.uid]*2. … … 148 150 llh.append( '<a title="Excel variable list: %s" href="data/tabs02/%s">%s</a>' % (sm,fn,s) ) 149 151 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]) ) ) 151 153 raise 152 154 else: … … 184 186 assert x[0] == xs, 'ERROR.0088: consistency problem %s %s %s %s' % (m,m2,x[0],xs) 185 187 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() ) ) 188 190 189 191 if acc:
Note: See TracChangeset
for help on using the changeset viewer.