Skip to content

Commit

Permalink
Merge pull request #170 from BlueBrain/fixes
Browse files Browse the repository at this point in the history
Fix frequency in FI curve and add global parameters
  • Loading branch information
AurelienJaquier committed Sep 18, 2024
2 parents 60aee34 + dcad6de commit 75c439a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions bluepyemodel/emodel_pipeline/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def thumbnail(
voltage = responses[trace_name]["voltage"]
except KeyError:
logger.warning(
"Could not find protocol %s in respsonses. Skipping thumbnail plotting.",
"Could not find protocol %s in responses. Skipping thumbnail plotting.",
trace_name,
)
return None, None
Expand Down Expand Up @@ -675,8 +675,10 @@ 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
2 changes: 1 addition & 1 deletion bluepyemodel/model/neuron_model_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"allact": ["apical", "basal", "somatic", "axonal"],
}

global_parameters = ["v_init", "celsius", "cm", "Ra", "ena", "ek"]
global_parameters = ["v_init", "celsius", "cm", "Ra", "ena", "ek", "eca", "eh"]


class NeuronModelConfiguration:
Expand Down

0 comments on commit 75c439a

Please sign in to comment.