From 2ddda242f74f5634d9052d06aea9c49d3398ead1 Mon Sep 17 00:00:00 2001 From: David Robert Verelst <dave@dtu.dk> Date: Tue, 17 Jan 2017 10:34:54 +0100 Subject: [PATCH] prepost.dlcdefs: by default DLB gen uses tag wsp instead of Windspeed Note that this illustrates that a documented and consistent tag standard naming scheme is long overdue! --- wetb/prepost/dlcdefs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wetb/prepost/dlcdefs.py b/wetb/prepost/dlcdefs.py index 92b1057f..6443ab5d 100644 --- a/wetb/prepost/dlcdefs.py +++ b/wetb/prepost/dlcdefs.py @@ -350,6 +350,9 @@ def excel_stabcon(proot, fext='xlsx', pignore=None, pinclude=None, sheet=0, elif tags_dict[str(key)].lower() == 'nan': tags_dict[str(key)] = True + if '[Windspeed]' not in tags_dict and '[wsp]' in tags_dict: + tags_dict['[Windspeed]'] = tags_dict['[wsp]'] + tags_dict['[Case folder]'] = tags_dict['[Case folder]'].lower() tags_dict['[Case id.]'] = tags_dict['[Case id.]'].lower() dlc_case = tags_dict['[Case folder]'] -- GitLab