Ignore:
Timestamp:
12/02/16 13:06:56 (4 years ago)
Author:
mjuckes
Message:

Updated setup for tag 01.beta.20

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreq/trunk/dreqPy/dreq.py

    r586 r594  
    421421## 
    422422    self.coll['__core__'] = self.ntf( self._t0.header, self._t0.attributes, [self.tt0[k] for k in self.tt0] ) 
     423 
     424    ec = {} 
     425    for i in self.coll['__core__'].items: 
     426      ec[i.label] = i 
     427 
    423428      ##self.coll[k] = self.ntf( self.recordAttributeDefn[k].header, self.recordAttributeDefn[k].attributes, self.tableItems[k] ) 
    424429 
     
    439444 
    440445    self.coll['__sect__'] = self.ntf( self._t1.header, self._t1.attributes, [self.tt1[k] for k in self.tt1] ) 
     446 
     447    for sct in ['__core__','__main__','__sect__']: 
     448      for k in self.coll[sct].attDefn.keys(): 
     449        assert k in ec, 'Key %s [%s] not found' % (k,sct) 
     450        self.coll[sct].attDefn[k] = ec[k] 
    441451 
    442452    self.recordAttributeDefn = tables 
Note: See TracChangeset for help on using the changeset viewer.