Changeset 1757 in lmdz_wrf


Ignore:
Timestamp:
Jan 10, 2018, 2:47:27 PM (7 years ago)
Author:
lfita
Message:

Fixing generic use of 'datetimeStr_conversion' to take into account when `cfTime' is used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic.py

    r1326 r1757  
    142142    Nvals = 3
    143143    vals = opts.values.split(cS)
     144    newvals = []
     145    if vals[1] == 'cfTime':
     146        newvals.append(vals[0])
     147        newvals.append(vals[1]+','+vals[2])
     148        if vals[2] == 'cfTime': newvals.append(vals[3]+','+vals[4])
     149        vals = list(newvals)
     150    if vals[2] == 'cfTime':
     151        newvals.append(vals[0])
     152        newvals.append(vals[1])
     153        newvals.append(vals[2]+','+vals[3])
     154        vals = list(newvals)
     155
    144156    if vals[0] == 'h':
    145157        print gen.datetimeStr_conversion.__doc__
Note: See TracChangeset for help on using the changeset viewer.