Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudon committed Dec 5, 2023
1 parent 4825a7f commit c040034
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions neurots/astrocyte/space_colonization.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def _repulsion(points, current_point, length_constant):
lengths = np.linalg.norm(vectors, axis=1)
u_vectors = vectors / lengths[:, None]

contributions = np.exp(lengths * -decay_rate)
#contributions = np.exp(lengths * -decay_rate)
contributions = 1+ lengths * -decay_rate
return contributions.dot(u_vectors) / len(vectors)


Expand Down Expand Up @@ -235,7 +236,7 @@ def _colonization_split(section, angles, parameters, context):

# repulsion contribution only from points in the hemisphere aligned to direction
ids = upper_half_ball_query(morphology_points, current_point, kill_distance, section_direction)
repulsion = 0.1 #_repulsion(morphology_points[ids], current_point, kill_distance)
repulsion = _repulsion(morphology_points[ids], current_point, kill_distance)

if section.process == "major":
seed_ids = point_cloud.partial_ball_query(
Expand Down
Binary file modified tests/astrocyte/data/astrocyte.h5
Binary file not shown.

0 comments on commit c040034

Please sign in to comment.