Ignore:
Timestamp:
17/08/16 15:28:11 (4 years ago)
Author:
mjuckes
Message:

01.beta.33

File:
1 edited

Legend:

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

    r683 r717  
    66  import dreq 
    77  from utilities import cmvFilter  
     8  import makeTables 
    89except: 
    9   import dreqPy.dreq 
     10  import dreqPy.dreq  as dreq 
    1011  from dreqPy.utilities import cmvFilter  
     12  import dreqPy.makeTables as makeTables 
    1113 
    1214import collections, string, operator 
    13 import makeTables 
    1415import sys, os 
    1516 
     
    184185      if i.odims != '': 
    185186        s = s*5 
    186       self.sz[i.uid] = self.szss[i.spid]*s 
    187       for k in szr: 
    188         self.szg[k][i.uid] = self.szgss[k][i.spid]*s 
     187      if i.spid in self.szss: 
     188        self.sz[i.uid] = self.szss[i.spid]*s 
     189        for k in szr: 
     190          self.szg[k][i.uid] = self.szgss[k][i.spid]*s 
     191      else: 
     192        print ('WARNING: spid has no size info: %s' % i.spid ) 
     193        self.sz[i.uid] = 0. 
     194        for k in szr: 
     195          self.szg[k][i.uid] = 0. 
    189196 
    190197  def getRequestLinkByMip( self, mipSel ): 
     
    510517    for v in vars: 
    511518      if 'requestVar' not in inx.iref_by_sect[v].a: 
    512          print 'Variable with no request ....: %s, %s' % (inx.uid[v].label, inx.uid[v].mipTable) 
     519         print ( 'Variable with no request ....: %s, %s' % (inx.uid[v].label, inx.uid[v].mipTable) ) 
    513520      szv[v] = self.sz[inx.uid[v].stid]*npy[inx.uid[v].frequency] 
    514521      ov.append( self.dq.inx.uid[v] ) 
     
    909916      assert len(ll) == 7, 'Length of model configuration argument must be 7 comma separated integers: %s' %  self.adict['mcfg'] 
    910917      lli = [ int(x) for x in ll] 
    911       print lli 
    912918 
    913919    self.sc = dreqQuery( dq=self.dq ) 
     
    944950      self.sc.checkDir( odir, 'xls files' ) 
    945951 
    946       ##print mips, eid 
    947952      if 'txtOpts' in self.adict: 
    948953        if self.adict['txtOpts'][0] == 'v': 
Note: See TracChangeset for help on using the changeset viewer.