diff --git a/bluepyemodel/emodel_pipeline/plotting.py b/bluepyemodel/emodel_pipeline/plotting.py index 135b0a66..66a3256e 100644 --- a/bluepyemodel/emodel_pipeline/plotting.py +++ b/bluepyemodel/emodel_pipeline/plotting.py @@ -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 @@ -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 diff --git a/bluepyemodel/model/neuron_model_configuration.py b/bluepyemodel/model/neuron_model_configuration.py index 59de6ff3..4be3267a 100644 --- a/bluepyemodel/model/neuron_model_configuration.py +++ b/bluepyemodel/model/neuron_model_configuration.py @@ -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: