You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cortical pyramidal preset registers INaP via ChannelConfig(make_inap_channel, g_max=0.1) at patch_sim/presets.py:236withoutextra_kwargs={"slow_inactivation": True}. Fast Na uses make_pospischil_na_channel — which has no slow_inactivation code path at all, unlike make_stn_na_channel.
Real cortical pyramidal cells have both:
INaP slow inactivation (Magistretti & Alonso 1999 in entorhinal layer-II stellates; same Na-channel family in cortical pyramidal).
Fast-Na slow inactivation — directly demonstrated in cortical pyramidal cells by Fleidervish & Gutnick (1996), J. Physiol. 493:83.
Note: this same Fleidervish & Gutnick 1996 citation is currently used in the codebase to justify enabling slow inactivation on STN (patch_sim/core_channels.py:1819) — it should equally justify enabling it on the cell type the paper actually studied.
Why this matters
Without slow inactivation, the cell can enter pathological depol-block plateaus under sustained drive (the same mechanism #324 fixed in STN). Spike-frequency adaptation is also weaker than literature reports because slow Na inactivation contributes to SFA in cortical neurons.
The current opt-in design is calibration convenience, not biology — the make_inap_channel docstring (patch_sim/additional_channels.py:343-348) explicitly says opt-in exists to preserve the existing AP-shape calibration, not because cortical pyramidal cells lack the gate.
Set extra_kwargs={"slow_inactivation": True} on the INaP ChannelConfig at patch_sim/presets.py:236.
Add a slow_inactivation: bool = False kwarg to make_pospischil_na_channel (mirroring make_stn_na_channel at patch_sim/core_channels.py:1893-1957); wire it on via na_channel_factory=functools.partial(make_pospischil_na_channel, slow_inactivation=True).
Retune g_Na / g_K / g_NaP to keep AP shape and SFA bands within literature.
Add a depol-block recovery test mirroring test_stn_recovers_from_sustained_suprathreshold_drive.
Observation
The cortical pyramidal preset registers INaP via
ChannelConfig(make_inap_channel, g_max=0.1)atpatch_sim/presets.py:236withoutextra_kwargs={"slow_inactivation": True}. Fast Na usesmake_pospischil_na_channel— which has noslow_inactivationcode path at all, unlikemake_stn_na_channel.Real cortical pyramidal cells have both:
Note: this same Fleidervish & Gutnick 1996 citation is currently used in the codebase to justify enabling slow inactivation on STN (
patch_sim/core_channels.py:1819) — it should equally justify enabling it on the cell type the paper actually studied.Why this matters
Without slow inactivation, the cell can enter pathological depol-block plateaus under sustained drive (the same mechanism #324 fixed in STN). Spike-frequency adaptation is also weaker than literature reports because slow Na inactivation contributes to SFA in cortical neurons.
The current opt-in design is calibration convenience, not biology — the make_inap_channel docstring (
patch_sim/additional_channels.py:343-348) explicitly says opt-in exists to preserve the existing AP-shape calibration, not because cortical pyramidal cells lack the gate.Approach
Mirror the #324 work:
extra_kwargs={"slow_inactivation": True}on the INaP ChannelConfig atpatch_sim/presets.py:236.slow_inactivation: bool = Falsekwarg tomake_pospischil_na_channel(mirroringmake_stn_na_channelatpatch_sim/core_channels.py:1893-1957); wire it on viana_channel_factory=functools.partial(make_pospischil_na_channel, slow_inactivation=True).g_Na/g_K/g_NaPto keep AP shape and SFA bands within literature.test_stn_recovers_from_sustained_suprathreshold_drive._build_neuronround-trip (already fixed in STN: depolarization-block recovery missing — voltage stays pinned at ~−15 mV after high-stim step #324 to preserveextra_kwargs).Acceptance criteria
test_cp_recovers_from_sustained_suprathreshold_drivestill passes.sNaPand Pospischil Na hassNacolumns in current-clamp output.Refs