From 55516269f51df61ce70c6b60c144bd58171c8dc3 Mon Sep 17 00:00:00 2001 From: Anne Philipp <anne.philipp@univie.ac.at> Date: Fri, 1 Mar 2019 23:20:56 +0100 Subject: [PATCH] bug fix in check of length of type, time, step --- source/python/mods/checks.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/source/python/mods/checks.py b/source/python/mods/checks.py index 5c82032..9b6d534 100644 --- a/source/python/mods/checks.py +++ b/source/python/mods/checks.py @@ -394,13 +394,14 @@ def check_len_type_time_step(ftype, ftime, steps, maxstep, purefc): # if pure forecast is selected and only one field type/time is set # prepare a complete list of type/time/step combination upto maxstep if len(ftype) == 1 and purefc: - ftype = [] - steps = [] - ftime = [] + nftype = [] + nsteps = [] + nftime = [] for i in range(0, maxstep + 1): - ftype.append(ftype[0]) - steps.append('{:0>3}'.format(i)) - ftime.append(ftime[0]) + nftype.append(ftype[0]) + nsteps.append('{:0>3}'.format(i)) + nftime.append(ftime[0]) + return nftype, nftime, nsteps return ftype, ftime, steps -- GitLab