Population#
- class braintools.conn.Population(size, *, name, positions=None)#
A named group of neurons.
- Parameters:
- Raises:
TypeError – If
sizeis not an int or a tuple of ints, ornameis not a str.ValueError – If a size entry is not positive,
nameis empty, orpositionsdoes not havenumrows.
See also
Examples
>>> import numpy as np >>> import brainunit as u >>> from braintools.conn import Population >>> grid = Population((10, 20), name='V1', positions=np.zeros((200, 2)) * u.um) >>> grid.num 200 >>> grid Population(name='V1', size=(10, 20))