Changeset 5551626 in flex_extract.git


Ignore:
Timestamp:
Mar 1, 2019, 10:20:56 PM (5 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
e811e1a
Parents:
fc05fbd
Message:

bug fix in check of length of type, time, step

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/python/mods/checks.py

    rae2756e r5551626  
    395395    # prepare a complete list of type/time/step combination upto maxstep
    396396    if len(ftype) == 1 and purefc:
    397         ftype = []
    398         steps = []
    399         ftime = []
     397        nftype = []
     398        nsteps = []
     399        nftime = []
    400400        for i in range(0, maxstep + 1):
    401             ftype.append(ftype[0])
    402             steps.append('{:0>3}'.format(i))
    403             ftime.append(ftime[0])
     401            nftype.append(ftype[0])
     402            nsteps.append('{:0>3}'.format(i))
     403            nftime.append(ftime[0])
     404        return nftype, nftime, nsteps
    404405
    405406    return ftype, ftime, steps
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG