mpsprep.helpers.update_kwargs_dict
- mpsprep.helpers.update_kwargs_dict(default_kwargs, kwargs=None)[source]
Given a kwargs dict, this function updates it with the key, value pair of default_kwargs if the key in default_kwargs is not found in kwargs. Otherwise, that particular key in kwargs is not updated.
- Parameters
- default_kwargsdict
Dictionary of default keyword arguments.
- kwargsdict
Keyword arguments supplied to some function. The default is None.
- Returns
- kwargsdict
kwargs that has been updated by with default_kwargs.