dbbs-lab / bsb-core

The Brain Scaffold Builder
https://bsb.readthedocs.io
GNU General Public License v3.0
22 stars 16 forks source link

Allow orientations of cells without morphologies #678

Closed Helveg closed 1 year ago

Helveg commented 1 year ago

Currently rotations can only be applied to cell types that have morphologies. We should also run the rotation distributor if one is explicitly defined.

Helveg commented 1 year ago

The simplest approach is to add an extra condition to place_cells of the PlacementStrategy something like:

        elif has_explicit_rotations():
            rotations = self.distribute("rotations", self.partitions, indicator, positions)
            morphologies = None