Ignore:
Timestamp:
27/09/16 10:49:49 (4 years ago)
Author:
mjuckes
Message:

cleaned overview tabs

File:
1 edited

Legend:

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

    r668 r766  
    3333    self.a = collections.defaultdict( list ) 
    3434 
     35hmap0 = {'CMIP6':'Historical'} 
    3536class r1(object): 
    3637  def __init__(self,sc,tiermax=1,pmax=1,only=False): 
     
    116117    oo = open( 'tab01_%s_%s.texfrag' % (self.tiermax,self.pmax), 'w' ) 
    117118    mmh = [] 
    118     mhdr = [ '\\rot{80}{%s}' % m for m in self.mipsp + ['TOTAL',]] 
    119     mhdrh = [ '<th><div><span>%s</span></div></th>' % m for m in self.mipsp] 
     119    mhdr = [ '\\rot{80}{%s}' % hmap0.get(m,m) for m in self.mipsp + ['TOTAL',]] 
     120    mhdrh = [ '<th><div><span>%s</span></div></th>' % hmap0.get(m,m) for m in self.mipsp + ['TOTAL',]] 
    120121    oo.write( string.join(['',] + mhdr, ' & ' ) + '\\\\ \n\\hline\n' ) 
    121122    mmh.append( '<table>\n<tr class="rotate">' + string.join(['<th></th>',] + mhdrh ) + '</tr>\n' ) 
Note: See TracChangeset for help on using the changeset viewer.