Ignore:
Timestamp:
06/04/17 09:10:34 (3 years ago)
Author:
mjuckes
Message:

misc

File:
1 edited

Legend:

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

    r940 r967  
    584584  def audit_rql(self): 
    585585    ii = [i for i in self.dq.coll['requestLink'].items if self.dq.inx.uid[i.refid]._h.label == 'remarks'] 
    586     log.info( '%48s: %s (from %s)' % ('Bad request group links in requestLink',len(ii), len(self.dq.coll['requestLink'].items)) ) 
     586    log.info( '%48s: %s (from %s)' % ('ERROR.rql.001: Bad request group links in requestLink',len(ii), len(self.dq.coll['requestLink'].items)) ) 
     587    rql_detail=True 
     588    if rql_detail: 
     589      for i in ii: 
     590         log.info( '%s: %s, %s [%s]' % ('ERROR.rql.002: ',i.mip,i.label,i.uid) ) 
    587591 
    588592  def audit_rqg(self): 
    589593    ii = [i for i in self.dq.coll['requestVarGroup'].items if len( dq.inx.iref_by_sect[i.uid].a['requestVar'])  == 0] 
    590594    ii1 = [i for i in ii if len( dq.inx.iref_by_sect[i.uid].a['requestLink'])  != 0] 
    591     log.info( '%48s: %s/%s (from %s)' % ('Empty request groups',len(ii) - len(ii1),len(ii1), len(self.dq.coll['requestVarGroup'].items)) ) 
    592     listEmptyRequestVarGroups=False 
     595    log.info( '%48s: %s/%s (from %s)' % ('Request groups with no request links:',len(ii) - len(ii1),len(ii1), len(self.dq.coll['requestVarGroup'].items)) ) 
     596    listEmptyRequestVarGroups=True 
    593597    if listEmptyRequestVarGroups: 
    594598      for i in ii1: 
    595         log.info ( '%s: %s, %s' % (i.label, i.title, i.mip) ) 
     599        log.info ( 'INFO.rqgempty.0001: %s: %s, %s [%s]' % (i.label, i.title, i.mip, i.uid) ) 
    596600 
    597601dq = dreq.loadDreq(manifest=None) 
Note: See TracChangeset for help on using the changeset viewer.