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

Don't throw an error when analysing if no neuron-muscle connections #63

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion c302/NeuroMLUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def analyse_connections(cells, neuron_conns, neurons2muscles, muscles, muscle_co

print_("Found %i neurons connected to muscles: %s\n"%(len(neurons2muscles), sorted(neurons2muscles)))
print_("Found %i muscles connected to neurons: %s\n"%(len(muscles), sorted(muscles)))
print_("Found %i connections between neurons and muscles, e.g. %s\n"%(len(muscle_conns), muscle_conns[0]))

print_("Found %i connections between neurons and muscles%s\n"%(len(muscle_conns), (', e.g. %s'%muscle_conns[0]) if len(muscle_conns)>0 else ''))

nts = {}
nts_tot = {}
Expand Down