From 68f8495ac0e101d39cffc9b31d6b23d4d20504ff Mon Sep 17 00:00:00 2001 From: James Date: Tue, 18 Jun 2024 14:29:47 +0100 Subject: [PATCH] update for numpy==2 --- pvnet_summation/models/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvnet_summation/models/model.py b/pvnet_summation/models/model.py index 18ae98e..96528a5 100644 --- a/pvnet_summation/models/model.py +++ b/pvnet_summation/models/model.py @@ -59,7 +59,7 @@ def __init__( output_network_kwargs = dict() self.model = output_network( - in_features=np.product(self.pvnet_output_shape), + in_features=np.prod(self.pvnet_output_shape), out_features=self.num_output_features, **output_network_kwargs, )