Skip to content

Commit

Permalink
fix(nest): Skip empty connectivity sets and raise a warning. closes #70
Browse files Browse the repository at this point in the history
… (#78)
  • Loading branch information
Boboz8 committed Sep 4, 2020
1 parent ce8f284 commit 1db0dd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bsb/simulators/nest.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,9 @@ def connect_neurons(self):
postsynaptic_targets = np.array(
self.get_nest_ids(np.array(cs.to_identifiers, dtype=int))
)
if not len(presynaptic_sources) or not len(postsynaptic_targets):
warn("No connections for " + name)
continue
# Accessing the postsynaptic type to be associated to the volume transmitter of the synapse
postsynaptic_type = cs.connection_types[0].to_cell_types[0]
postsynaptic_cells = np.unique(postsynaptic_targets)
Expand Down

0 comments on commit 1db0dd0

Please sign in to comment.