From 499a4004902628a6137ff7b7cd1f8e64f16f18f0 Mon Sep 17 00:00:00 2001 From: pbrod Date: Sun, 1 Jan 2017 03:02:14 +0100 Subject: [PATCH] Fixed a bug --- wafo/stats/_distn_infrastructure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wafo/stats/_distn_infrastructure.py b/wafo/stats/_distn_infrastructure.py index cb8c1e0..67649a3 100644 --- a/wafo/stats/_distn_infrastructure.py +++ b/wafo/stats/_distn_infrastructure.py @@ -287,7 +287,7 @@ def _nlogps_and_penalty(self, x, scale, args): n_bad = np.sum(cond0) if n_bad > 0: x = argsreduce(~cond0, x)[0] - log_dprb = _log_dprb(x, args, scale) + log_dprb = _log_dprb(self, x, args, scale) finite_log_dprb = np.isfinite(log_dprb) n_bad += np.sum(~finite_log_dprb, axis=0) if n_bad > 0: