Changeset 1338 in lmdz_wrf


Ignore:
Timestamp:
Nov 16, 2016, 8:03:06 PM (9 years ago)
Author:
lfita
Message:

Fixing? `modexpallvals'? Dictionary to string did not use ':', and ity was read with cV=':'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/model_graphics.py

    r1336 r1338  
    41684168            values = line.replace('\n','').split(' ')
    41694169            if values[0] == 'allmodexps:':
    4170                 allplts = gen.stringList_dictKeysVals(values[1],cV=':')
     4170                allplts = gen.stringList_dictKeysVals(values[1])
    41714171            elif values[0] == 'Nallmodexp:':
    41724172                Nallmodexp = int(values[1])
     
    43044304                    print '  ' + fname + ": no file for variable-operation '" +      \
    43054305                      vnopS + "' !!"
    4306 #                modexpvals = allvarcomp[vnopS]
    43074306                modexpvalsS = allvarcomp[vnopS]
    4308                 if type(modexpvalsS) == type([1,2]) and len(modexpvalsS[0]) > 40:
    4309                     modexpvals = modexpvalsS
    4310                 else:
    4311                     modexpvals = modexpvalsS[0].split('|')
     4307                modexpvals = modexpvalsS.lsplit('|')
    43124308                Nmodexps = len(modexpvals)
     4309                print fname + '; Lluis modexpvalsS:', modexpvalsS
     4310                print fname + '; Lluis modexpvals:', modexpvals
    43134311
    43144312                for imodexp in range(0,Nmodexps,2):
Note: See TracChangeset for help on using the changeset viewer.