Skip to content

Commit

Permalink
Fixed #16 - add an empty Population if no cells
Browse files Browse the repository at this point in the history
  • Loading branch information
danilobenozzo committed Jul 23, 2024
1 parent 6f9e511 commit af54424
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bsb_neuron/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ def create_neurons(self, simulation):
if (len(ps)) != 0:
self._create_population(simdata, cell_model, ps, offset)
offset += len(ps)
else:
simdata.populations[cell_model] = NeuronPopulation(cell_model, [])

def create_connections(self, simulation):
simdata = self.simdata[simulation]
Expand Down

0 comments on commit af54424

Please sign in to comment.