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

populations + getindex/iteration support #37

Merged
merged 6 commits into from
Jul 15, 2022
Merged

Conversation

wsphillips
Copy link
Owner

@wsphillips wsphillips commented Jul 11, 2022

Population allows creating arbitrary numbers of neurons from a prototype/template using the Base.Iterators interface.

This PR will also implement iteration and indexing on MultiCompartmentSystems (to index subcompartments versus calling by name with getproperty) and the same for NetworkTopology and NeuronalNetworkSystem.

@wsphillips
Copy link
Owner Author

Enables convenient syntax like:

for neuron in network, compartment in neuron
    # process each compartment of each neuron in a NeuronalNetworkSystem
end

# make a synapse between two neurons
topology[pre, post] = Glut(30nS)
# alternatively...
topology[pre => post] = Glut(30nS)

# mixed syntax...
network[2].soma # soma of the 2nd neuron in the network

@wsphillips wsphillips merged commit 0633062 into main Jul 15, 2022
@wsphillips wsphillips deleted the wsp/populations branch July 23, 2022 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant