def __init__(self, **kwargs): Params.__init__(self) if "filename" in kwargs: self.load(kwargs["filename"]) elif "json" in kwargs: self.convert_to_param(kwargs["json"]) else: self.store = dict() self.param_descriptions = dict()
def __init__(self, **kwargs): Params.__init__(self) self.param_filename = None self.log_if_default = kwargs.pop("log_if_default", False) if "filename" in kwargs: self.load(kwargs["filename"]) self.param_filename = kwargs["filename"] elif "json" in kwargs: self.ConvertToParam(kwargs["json"]) else: self.store = dict() self.param_descriptions = dict()
def __init__(self, **kwargs): Params.__init__(self) ParameterWrapper.__init__(self, **kwargs)