Skip to content

Commit

Permalink
remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkilic committed Apr 23, 2024
1 parent 3d2dc90 commit afef1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bluepyefe/recording.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def compute_efeatures(
for efeature_name, efeature in zip(efeature_names, efeatures):

value = [v for v in efel_vals[0][efeature] if v is not None]
if value is None or len(value) == 0 or numpy.isinf(numpy.nanmean(value)):
if len(value) == 0 or numpy.isinf(numpy.nanmean(value)):
self.efeatures[efeature_name] = numpy.nan
else:
self.efeatures[efeature_name] = numpy.nanmean(value)
Expand Down

0 comments on commit afef1a1

Please sign in to comment.