From 77768ba3dd0eca6e61599b97c095eee71b57c674 Mon Sep 17 00:00:00 2001
From: David Robert Verelst <dave@dtu.dk>
Date: Mon, 26 Feb 2018 14:42:54 +0100
Subject: [PATCH] prepost.dlcdefs: make sure either wsp or Windspeed work as
 tags

---
 wetb/prepost/dlcdefs.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/wetb/prepost/dlcdefs.py b/wetb/prepost/dlcdefs.py
index d46ae48a..02f8c914 100644
--- a/wetb/prepost/dlcdefs.py
+++ b/wetb/prepost/dlcdefs.py
@@ -429,6 +429,8 @@ def excel_stabcon(proot, fext='xlsx', pignore=None, pinclude=None, sheet=0,
             # tag spec/naming convention, and with special tag prefix
             if '[Windspeed]' not in tags_dict and '[wsp]' in tags_dict:
                 tags_dict['[Windspeed]'] = tags_dict['[wsp]']
+            elif '[Windspeed]' in tags_dict and '[wsp]' not in tags_dict:
+                tags_dict['[wsp]'] = tags_dict['[Windspeed]']
             # avoid that any possible default tags from wetb will be used
             # instead of the ones from the spreadsheet
             if '[seed]' in tags_dict:
-- 
GitLab