Voxels module

class bsb.voxels.HitDetector(detector)[source]

Wrapper class for commonly used hit detectors in the voxelization process.

classmethod for_rtree(tree)[source]

Factory function that creates a hit detector for the given morphology.

Parameters

morphology (TrueMorphology) – A morphology.

Returns

A hit detector

Return type

HitDetector

bsb.voxels.detect_box_compartments(tree, box_origin, box_size)[source]

Given a tree of compartment locations and a box, it will return the ids of all compartments in the outer sphere of the box

Parameters

box_origin – The lowermost corner of the box.