bsb.connectivity package#

Subpackages#

Submodules#

bsb.connectivity.general module#

class bsb.connectivity.general.AllToAll(*args, _parent=None, _key=None, **kwargs)[source]#

Bases: ConnectionStrategy

All to all connectivity between two neural populations

connect(pre, post)[source]#
get_region_of_interest(chunk)[source]#
class bsb.connectivity.general.Convergence(*args, _parent=None, _key=None, **kwargs)[source]#

Bases: ConnectionStrategy

Connect cells based on a convergence distribution, i.e. by connecting each source cell to X target cells.

connect()[source]#
convergence#

Base implementation of all the different configuration attributes. Call the factory function attr() instead.

get_node_name()#
class bsb.connectivity.general.ExternalConnections(*args, _parent=None, _key=None, **kwargs)[source]#

Bases: ConnectionStrategy

Load the connection matrix from an external source.

casts = {'format': <class 'str'>, 'headers': <class 'bool'>, 'use_map': <class 'bool'>, 'warn_missing': <class 'bool'>}#
check_external_source()[source]#
connect()[source]#
defaults = {'delimiter': ',', 'format': 'csv', 'headers': True, 'use_map': False, 'warn_missing': True}#
get_external_source()[source]#
has_external_source = True#
required = ['source']#
validate()[source]#
class bsb.connectivity.general.FixedIndegree(*args, _parent=None, _key=None, **kwargs)[source]#

Bases: InvertedRoI, ConnectionStrategy

Connect a group of postsynaptic cell types to indegree uniformly random presynaptic cells from all the presynaptic cell types.

connect(pre, post)[source]#
get_node_name()#
get_region_of_interest(chunk)[source]#
indegree#

Base implementation of all the different configuration attributes. Call the factory function attr() instead.

bsb.connectivity.strategy module#

class bsb.connectivity.strategy.ConnectionStrategy(*args, _parent=None, _key=None, **kwargs)[source]#

Bases: ABC, SortableByAfter

after#

Action to perform after connecting the neurons with the current strategy.

abstract connect(presyn_collection, postsyn_collection)[source]#
connect_cells(pre_set, post_set, src_locs, dest_locs, tag=None)[source]#
create_after()[source]#
get_after()[source]#
get_cell_types()[source]#
get_node_name()#
classmethod get_ordered(objects)[source]#
abstract get_region_of_interest(chunk)[source]#
has_after()[source]#
name#

Name used to refer to the connectivity strategy

postsynaptic#

Postsynaptic (target) neuron population

presynaptic#

Presynaptic (source) neuron population

queue(pool)[source]#

Specifies how to queue this connectivity strategy into a job pool. Can be overridden, the default implementation asks each partition to chunk itself and creates 1 placement job per chunk.

strategy#

Base implementation of all the different configuration attributes. Call the factory function attr() instead.

class bsb.connectivity.strategy.Hemitype(*args, _parent=None, _key=None, **kwargs)[source]#

Bases: object

Class used to represent one (pre- or postsynaptic) side of a connection rule.

cell_types#

List of cell types to use in connection.

get_node_name()#
labels#

List of labels to filter the placement set by.

morpho_loader#

Function to load the morphologies (MorphologySet) from a PlacementSet

morphology_labels#

List of labels to filter the morphologies by.

class bsb.connectivity.strategy.HemitypeCollection(hemitype, roi)[source]#

Bases: object

property placement#

Module contents#