Ignore:
Timestamp:
02/02/16 15:05:50 (5 years ago)
Author:
mjuckes
Message:

distrib ready ...

File:
1 edited

Legend:

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

    r581 r583  
    462462 
    463463def atRepr(l,x): 
    464   v = l.__dict__[x] 
     464  if x != None: 
     465    v = l.__dict__[x] 
     466  else: 
     467    v = l 
    465468  if v == '__unset__': 
    466469    return '' 
     470  elif type(v) == type([]): 
     471    return string.join([str(i) for i in v]) 
    467472  else: 
    468473    return v 
     
    548553   if i.label[-2:] != '--': 
    549554     ee1 = varRefs.get( i.uid, {} ) 
    550      r2 = map( lambda x: string.join( ee1.get(x, [] ) ), ks2 ) 
    551      oo.write( string.join(map( lambda x: i.__dict__[x], ks) + r2, '\t' ) + '\n' ) 
     555     r2 = map( lambda x: string.join( atRepr( ee1.get(x, [] ), None ) ), ks2 ) 
     556     oo.write( string.join(map( lambda x: atRepr(i,x), ks) + r2, '\t' ) + '\n' ) 
    552557oo.close() 
    553558 
Note: See TracChangeset for help on using the changeset viewer.