Ignore:
Timestamp:
12/04/16 09:49:56 (4 years ago)
Author:
mjuckes
Message:

cleaned scope.py

File:
1 edited

Legend:

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

    r608 r629  
    655655        uid = item.getAttribute( 'uid' )   
    656656        if ('requestLink' not in dq.inx.iref_by_sect[uid].a) and ('tableSection' not in dq.inx.iref_by_sect[uid].a): 
    657           self.removedUids[ uid ] = 'requestVarGroup:  %s' % item.getAttribute( 'label' ) 
    658           this.removeChild(item) 
    659           nn+=1 
    660     print 'Unused variable groups removed: %s' % nn 
     657          if item.getAttribute( 'label' ) in ['aermonthly']: 
     658             print 'WARN.0010: overriding variable group pruning: ',item.getAttribute( 'label' ) 
     659          else: 
     660            self.removedUids[ uid ] = 'requestVarGroup:  %s' % item.getAttribute( 'label' ) 
     661            this.removeChild(item) 
     662            nn+=1 
     663    print 'WARN.Unused variable groups removed: %s' % nn 
    661664    this = self.doc.getElementsByTagName('requestVar')[0] 
    662665    dil = this.getElementsByTagName('item') 
     
    880883  an.strTtl(dq) 
    881884  for k in an.removedUids: 
    882     print 'REMOVED: %s: %s' % (k,an.removedUids[k]) 
     885    print 'WARN.REMOVED: %s: %s' % (k,an.removedUids[k]) 
    883886  an.missingRefs( dq.inx.missingIds, dq ) 
Note: See TracChangeset for help on using the changeset viewer.