• full name:

  • parent module:

  • type: function, keys, verbose_msg=None)[source]

Check for any non-zero or non-equal entries in some parameters.


A dictionary of parameters.

keyslist of {key | tuple of keys}

For a single key, check params[key] for non-zero entries. For a tuple of keys, all the params[key] have to be equal (as numpy arrays).

verbose_msgNone | str

If params[‘verbose’] >= 1, we print verbose_msg before checking, and a short notice with the key, if a non-zero entry is found.


False, if all params[key] are zero or None and True, if any of the params[key] for single key in keys,

of if any of the entries for a tuple of keys