Skip to content

Commit

Permalink
changing np.NaN to np.nan in order to pass with newer versions of numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
kaeldai committed Dec 3, 2024
1 parent 0a908dd commit d27e0b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bmtk/simulator/filternet/lgnmodel/cellmetrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit d27e0b6

Please sign in to comment.