Skip to content

Commit

Permalink
Fix: Astrocyte grower infinite loop (#104)
Browse files Browse the repository at this point in the history
* Fix: Astrocyte grower infinite loop  #103

Append a copy of point into the points list instead of a refence to the point.
  • Loading branch information
jacquemi-bbp authored Apr 15, 2024
1 parent d47bf8d commit 4dc6db9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neurots/astrocyte/section.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def grow_to_target(start_point, start_direction, target_point, segment_length, p
target_direction if np.allclose(direction, 0.0) else normalize_inplace(direction)
)

point += segment_length * direction
point = point + segment_length * direction
points.append(point)

# add the target point if the new point does not coincide
Expand Down
Binary file modified tests/astrocyte/data/astrocyte.h5
Binary file not shown.

0 comments on commit 4dc6db9

Please sign in to comment.