Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix frequency in FI curve and add global parameters #170

Merged
merged 3 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading