From 09b2dfa5d1b7193ac9c7e2fe80fe6e5b9cb7e7fd Mon Sep 17 00:00:00 2001 From: Marcel Paffrath Date: Thu, 6 Jul 2017 09:53:13 +0200 Subject: [PATCH] [hotfix] could not load multiple parameters from pylot.in if values are type==string --- pylot/core/io/inputs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pylot/core/io/inputs.py b/pylot/core/io/inputs.py index 9aa9b5d2..9b23612d 100644 --- a/pylot/core/io/inputs.py +++ b/pylot/core/io/inputs.py @@ -208,7 +208,10 @@ class PylotParameter(object): vallist = value.strip().split(' ') val = [] for val0 in vallist: - val0 = float(val0) + try: + val0 = float(val0) + except: + pass val.append(val0) else: val = str(value.strip())