Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudon committed Sep 28, 2023
1 parent d547805 commit c351bf5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion neurots/generate/orientations.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,10 @@ def _mode_normal_pia_constraint(self, values_dict, tree_type):
Pia direction can be overwritten by the parameter 'pia_direction' value.
"""
n_orientations = sample.n_neurites(self._distributions[tree_type]["num_trees"], self._rng)
if len(values_dict["direction"]["mean"]) == n_orientations:
if (
isinstance(values_dict["direction"]["mean"], list)
and len(values_dict["direction"]["mean"]) == n_orientations
):
# to force the direction of possibly 2 apicals, otherwise it is for basals
n_orientations = 1

Expand Down

0 comments on commit c351bf5

Please sign in to comment.