From b8d34429548a17797958fc46582deeb5bdfc421d Mon Sep 17 00:00:00 2001 From: jake-sigtech <81232270+jake-sigtech@users.noreply.github.com> Date: Tue, 18 Jun 2024 10:04:05 +0100 Subject: [PATCH] Update stats.py for deprecated numpy constant --- empyrical/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/empyrical/stats.py b/empyrical/stats.py index c66dffa..5d2c29d 100644 --- a/empyrical/stats.py +++ b/empyrical/stats.py @@ -872,7 +872,7 @@ def downside_risk(returns, np.asanyarray(returns), np.asanyarray(required_return), ), - np.NINF, + -np.inf, 0, )