Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alessandro Felder <[email protected]>
  • Loading branch information
matham and alessandrofelder authored Jun 3, 2024
1 parent fa70e65 commit 041b9da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brainglobe_utils/cells/cells.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def match_cells(
distance is greater than the threshold will be exluded from the
matching.
pre_match : bool, optional. Defaults to True.
If True, we will (interenally) first efficiently find all the pairs of
If True, we will (internally) first efficiently find all the pairs of
`cells` and `others` which are each at the same position in space. Then
we run the optimization to find the best matching on the remaining.
Expand Down Expand Up @@ -769,7 +769,7 @@ def _optimize_pairs(
dist = math.sqrt(dist)
if dist == np.inf:
raise ValueError(

Check warning on line 771 in brainglobe_utils/cells/cells.py

View check run for this annotation

Codecov / codecov/patch

brainglobe_utils/cells/cells.py#L766-L771

Added lines #L766 - L771 were not covered by tests
"The distance between point is too large"
"The distance between points is too large"
)
if have_threshold and dist > threshold:
dist = threshold

Check warning on line 775 in brainglobe_utils/cells/cells.py

View check run for this annotation

Codecov / codecov/patch

brainglobe_utils/cells/cells.py#L774-L775

Added lines #L774 - L775 were not covered by tests
Expand Down

0 comments on commit 041b9da

Please sign in to comment.