Changeset 238 for CCCC


Ignore:
Timestamp:
13/10/14 09:33:14 (6 years ago)
Author:
mjuckes
Message:

cleaned up extractMipInfo a little

Location:
CCCC/trunk/ceda_cc
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • CCCC/trunk/ceda_cc/extractMipInfo.py

    r236 r238  
    102102 
    103103    self.canonvar = [] 
    104     for l in open( 'canonicalVariations.txt' ).readlines(): 
     104    for l in open( 'config/canonicalVariations.txt' ).readlines(): 
    105105      if l[0] != '#': 
    106106        ix = l.index(':') 
     
    543543h = helper() 
    544544 
     545keys = m.adict.keys() 
     546keys.sort() 
     547fh = open( 'axes_json.txt', 'w' ) 
     548for k in keys: 
     549  ee = m.dd[m.adict[k][0]][k][0] 
     550  ee["__name__"] = k 
     551  fh.write( json.dumps( ee ) + "\n" ) 
     552fh.close() 
     553 
    545554al = [] 
    546555for k0 in m.dd.keys(): 
Note: See TracChangeset for help on using the changeset viewer.