Ignore:
Timestamp:
14/11/16 22:33:36 (4 years ago)
Author:
mjuckes
Message:

candidate

File:
1 edited

Legend:

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

    r826 r861  
    110110    self.audit_rqg() 
    111111    self.audit_str() 
     112    self.audit_cm() 
     113 
     114  def audit_cm(self): 
     115    log.info( 'Running Cell Methods Audit' ) 
     116    l1 = [i for i in self.dq.coll['structure'].items if i.cell_methods == ""] 
     117    ss = set() 
     118    if len( l1 ) > 0: 
     119      log.error( 'ERROR.cm.00010: %s blank cell methods in structure records: ' % len(l1) ) 
     120      for i in l1: 
     121        log.error( 'ERROR.cm.00011: %s: %s' % ( i.label, i.title )  ) 
     122    for i in l1: 
     123      if 'CMORvar' in self.dq.inx.iref_by_sect[i.uid].a: 
     124        for u in dq.inx.iref_by_sect[i.uid].a['CMORvar']: 
     125           ss.add(u) 
     126    if len(ss) > 0: 
     127      log.error( 'ERROR.cm.00020: %s CMOR vars affected ' % len(ss) ) 
    112128 
    113129  def audit_var(self): 
Note: See TracChangeset for help on using the changeset viewer.