pastas.check.stat_ufunc_threshold ================================= .. py:function:: pastas.check.stat_ufunc_threshold(ml: pastas.typing.Model, ufunc: collections.abc.Callable, statistic: str, threshold: float, **kwargs) Generic function to compare a model statistic with a threshold using a ufunc. :param ml: Pastas model instance. :type ml: pastas.Model :param ufunc: Numpy ufunc (e.g. np.greater_than) to compare the model statistic with the threshold. :type ufunc: callable :param statistic: Name of the statistic to be compared. :type statistic: str :param threshold: Threshold value for the statistic. :type threshold: float :param \*\*kwargs: Additional keyword arguments to pass to the statistic function. :returns: **df** -- DataFrame with the results of the check. :rtype: pandas.DataFrame .. !! processed by numpydoc !!