From b8713b4c8493941a94dc3f998d351bcbbcdcf3f3 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Wed, 20 Dec 2023 15:09:49 +0000 Subject: [PATCH] feat(nrnwriter): also handle ChannelDensityNonUniformNernst --- src/main/java/org/neuroml/export/neuron/NeuronWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/neuroml/export/neuron/NeuronWriter.java b/src/main/java/org/neuroml/export/neuron/NeuronWriter.java index 17f5c541..08c84638 100644 --- a/src/main/java/org/neuroml/export/neuron/NeuronWriter.java +++ b/src/main/java/org/neuroml/export/neuron/NeuronWriter.java @@ -2128,7 +2128,7 @@ public IntracellularProperties convertCellWithMorphology(Component cellComponent writeModFile(channelDensity.getRefHM().get("ionChannel"), option); } - else if (channelDensity.getTypeName().equals("channelDensityNernst")){ + else if (channelDensity.getTypeName().equals("channelDensityNernst") || channelDensity.getTypeName().equals("channelDensityNonUniformNernst") ){ ChannelConductanceOption option = ChannelConductanceOption.USE_NERNST; writeModFile(channelDensity.getRefHM().get("ionChannel"), option); }