Skip to content

Commit

Permalink
Impedance should return an array, not a float (#403)
Browse files Browse the repository at this point in the history
Co-authored-by: Jaquier Aurélien Tristan <[email protected]>
  • Loading branch information
AurelienJaquier and Jaquier Aurélien Tristan committed Jul 12, 2024
1 parent 9f9ad41 commit 04ad5a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion efel/pyfeatures/pyfeatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def impedance():
)[0]
smooth_Z = gaussian_filter1d(norm_Z[select_idxs], 10)
ind_max = np.argmax(smooth_Z)
return freq[ind_max]
return np.array([freq[ind_max]])
else:
return None
else:
Expand Down

0 comments on commit 04ad5a3

Please sign in to comment.