BranchSpecific

BranchSpecific#

class braintools.conn.BranchSpecific(branch_indices=None, connection_prob=0.3, weight=None, delay=None, **kwargs)#

Branch-specific dendritic targeting.

Targets specific branches within the dendritic tree based on branch indices or branch-specific rules.

Parameters:
  • branch_indices (List[int]) – Specific branch indices to target. These map to compartment types. Default targets basal and apical dendrites.

  • connection_prob (float) – Connection probability per branch.

  • weight (Initialization | float | int | ndarray | Array | Quantity | None) – Weight initialization.

  • delay (Initialization | float | int | ndarray | Array | Quantity | None) – Delay initialization.

Notes

Branch indices are mapped to dendritic compartment types. By default: - Index 0, 1: BASAL_DENDRITE - Index 2+: APICAL_DENDRITE This can be extended with full morphological information.

generate(pre_size, post_size, pre_positions=None, post_positions=None, **kwargs)[source]#

Generate branch-specific connections.

Return type:

ConnectionResult