Skip to content

Getting indices for all axonal compartments not working #1550

@NickChernov

Description

@NickChernov

Dear Brian Team,
I posted this on Stack Overflow but then saw that this may be a more relevant place to post:

I am trying to create a neuronal model in Brian 2 based on a .swc file which has about 900 compartments. I am importing the model morphology using morpho = Morphology.from_file()

I would like to plot the voltage vs. time for all the axonal compartments as well as all the dendrites but when I use the following:

axon_index = neuron[morpho.axon.indices[:]]
dendrite_index=neuron[morpho.apic.indices[:]]
I get:
dendrite compartments are: <Subgroup 'spatialneuron_subgroup_1' of 'spatialneuron' from 1 to 4>
axon compartments are:<Subgroup 'spatialneuron_subgroup' of 'spatialneuron' from 561 to 564>

There's way too few compartments listed. I would expect the answer for the axonal compartments to be something like 388-662. based on the swc file. Why aren't they listed? Thanks, Nick

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions