simrun
❭ utils
❭ set_default_arguments_if_not_set
set_default_arguments_if_not_set¶
- simrun.utils.set_default_arguments_if_not_set(o, kwargs)¶
Set default arguments of an object if they are not set.
Update attributes of an object based on a dictionary. If the attribute is already set, it is NOT opverwritten. If an object has been pickled and the keyword arguments have been extended post hoc, the new keyword arguments are missing. This can be used to update the object accordingly.