Skip to content

Commit

Permalink
fix in frequencies array construction in FI curve
Browse files Browse the repository at this point in the history
Change-Id: Ib63f81c5ceaec3d944f1bddb7115a1fb8560e75f
  • Loading branch information
Jaquier Aurélien Tristan committed Sep 18, 2024
1 parent 3a60015 commit dcad6de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bluepyemodel/emodel_pipeline/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,8 @@ def _get_fi_curve_from_evaluator(
[efel_trace], ["Spikecount", "mean_frequency"], raise_warnings=False
)[0]
spike_freq_equivalent.append(1e3 * float(features["Spikecount"]) / length_step)
frequencies.append(features.get("mean_frequency", None))
mean_freq = features.get("mean_frequency", None)
frequencies.append(mean_freq[0] if mean_freq is not None else None)

frequencies = numpy.array(frequencies, dtype=float)
return amps, frequencies, spike_freq_equivalent
Expand Down

0 comments on commit dcad6de

Please sign in to comment.