Skip to content

Commit

Permalink
feat(neuroml): refer to neuro_lex_ids in neuroml instead of hard coding
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayankur31 committed Sep 11, 2024
1 parent 3b79d06 commit 6c9b0d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions netpyne/conversion/neuromlFormat.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

try:
import neuroml
from neuroml.neuro_lex_ids import neuro_lex_ids
from pyneuroml import pynml
from pyneuroml import __version__ as pynml_ver
from distutils.version import StrictVersion
Expand Down Expand Up @@ -1354,7 +1355,7 @@ def handle_population(
# Unbranched segment group -> NEURON section
if (
hasattr(seg_grp, "neuro_lex_id")
and seg_grp.neuro_lex_id == "sao864921383"
and seg_grp.neuro_lex_id == neuro_lex_ids["section"]
):
use_segment_groups_for_neuron = True
cellRule["secs"][seg_grp.id] = {
Expand Down Expand Up @@ -1524,7 +1525,7 @@ def handle_population(

if (
not seg_grp.neuro_lex_id
or seg_grp.neuro_lex_id != "sao864921383"
or seg_grp.neuro_lex_id != neuro_lex_ids["section"]
):
cellRule["secLists"][seg_grp.id] = seg_grps_vs_nrn_sections[
seg_grp.id
Expand Down

0 comments on commit 6c9b0d4

Please sign in to comment.