From e7284cba41f03bc4abb1028dbaa37c9b8612431a Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 10 Jul 2018 13:36:52 +0200 Subject: [PATCH] [bugfix] dictionary containing params not initiated in __init__ --- pylot/core/io/inputs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pylot/core/io/inputs.py b/pylot/core/io/inputs.py index 82152e44..7f449ed9 100644 --- a/pylot/core/io/inputs.py +++ b/pylot/core/io/inputs.py @@ -48,6 +48,7 @@ class PylotParameter(object): self.__init_default_paras() self.__init_subsettings() self.__filename = fnin + self.__parameter = {} self._verbosity = verbosity self._parFileCont = {} # io from parsed arguments alternatively @@ -273,8 +274,8 @@ class PylotParameter(object): :rtype: None """ defaults = self.get_defaults() - for param in defaults: - self.setParamKV(param, defaults[param]['value']) + for param_name, param in defaults.items(): + self.setParamKV(param_name, param['value']) def from_file(self, fnin=None): """