simpeg.utils.set_kwargs#

simpeg.utils.set_kwargs(obj, ignore=None, **kwargs)[source]#

Set key word arguments for an object or throw an error if any do not exist.

Parameters:
objclass

Instance of a class

ignorelist, optional

list of str denoting kwargs that are ignored (not being set)

**kwargs

Keyword arguments to set on the object.