[bugfix] dictionary containing params not initiated in __init__
This commit is contained in:
parent
6ab2609e8c
commit
e7284cba41
@ -48,6 +48,7 @@ class PylotParameter(object):
|
|||||||
self.__init_default_paras()
|
self.__init_default_paras()
|
||||||
self.__init_subsettings()
|
self.__init_subsettings()
|
||||||
self.__filename = fnin
|
self.__filename = fnin
|
||||||
|
self.__parameter = {}
|
||||||
self._verbosity = verbosity
|
self._verbosity = verbosity
|
||||||
self._parFileCont = {}
|
self._parFileCont = {}
|
||||||
# io from parsed arguments alternatively
|
# io from parsed arguments alternatively
|
||||||
@ -273,8 +274,8 @@ class PylotParameter(object):
|
|||||||
:rtype: None
|
:rtype: None
|
||||||
"""
|
"""
|
||||||
defaults = self.get_defaults()
|
defaults = self.get_defaults()
|
||||||
for param in defaults:
|
for param_name, param in defaults.items():
|
||||||
self.setParamKV(param, defaults[param]['value'])
|
self.setParamKV(param_name, param['value'])
|
||||||
|
|
||||||
def from_file(self, fnin=None):
|
def from_file(self, fnin=None):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user