From f4765e10f0068d46b988bf5bf7737e03acdddf49 Mon Sep 17 00:00:00 2001 From: "Johannes U. Lange" Date: Mon, 30 Sep 2024 13:30:00 -0400 Subject: [PATCH] fix for numpy 2.0 --- prospect/plotting/corner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prospect/plotting/corner.py b/prospect/plotting/corner.py index 5c1cf794..93c9144b 100644 --- a/prospect/plotting/corner.py +++ b/prospect/plotting/corner.py @@ -305,7 +305,7 @@ def corner(samples, paxes, weights=None, span=None, smooth=0.02, :returns paxes: """ assert samples.ndim > 1 - assert np.product(samples.shape[1:]) > samples.shape[0] + assert np.prod(samples.shape[1:]) > samples.shape[0] ndim = len(samples) # Determine plotting bounds.