From d27e0b617845b92dd83599de090ba33e5fe2fa2e Mon Sep 17 00:00:00 2001 From: kaeldai Date: Tue, 3 Dec 2024 12:10:38 -0800 Subject: [PATCH] changing np.NaN to np.nan in order to pass with newer versions of numpy --- bmtk/simulator/filternet/lgnmodel/cellmetrics.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bmtk/simulator/filternet/lgnmodel/cellmetrics.py b/bmtk/simulator/filternet/lgnmodel/cellmetrics.py index c76e68c0..224132de 100644 --- a/bmtk/simulator/filternet/lgnmodel/cellmetrics.py +++ b/bmtk/simulator/filternet/lgnmodel/cellmetrics.py @@ -76,8 +76,8 @@ def _load_metrics(self, ctype): si_exp = exp_means.iloc[scn, 3:4].values ttp_exp = exp_means.iloc[scn, 1:2].values else: - si_exp = np.NaN * np.ones((1, 5)) - ttp_exp = np.NaN * np.ones((1, 2)) + si_exp = np.nan * np.ones((1, 5)) + ttp_exp = np.nan * np.ones((1, 2)) nsub = exp_nsub.iloc[scn] if nsub == 1: @@ -89,7 +89,7 @@ def _load_metrics(self, ctype): elif ctype.find('ON') >= 0: si_std = np.mean(exp_std.iloc[max_nsub_ind, 3:4].values) * np.ones((1, 5)) else: - si_std = np.NaN * np.ones((1, 5)) + si_std = np.nan * np.ones((1, 5)) else: f0_std = exp_std.iloc[scn, 5:10].values @@ -100,7 +100,7 @@ def _load_metrics(self, ctype): elif ctype.find('ON') >= 0: si_std = exp_std.iloc[scn, 3:4].values else: - si_std = np.NaN * np.ones((1, 5)) + si_std = np.nan * np.ones((1, 5)) if ctype.find('t') >= 0: tcross = 40.