Skip to content

Commit f470a59

Browse files
authored
Apply suggestions from code review
1 parent f34d609 commit f470a59

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

nitransforms/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ def __init__(self, dataset):
129129

130130
def check_sphere(self, tolerance=1.001):
131131
"""Check sphericity of surface.
132-
Based on https://github.com/Washington-University/workbench/blob/7ba3345d161d567a4b628ceb02ab4471fc96cb20/src/Files/SurfaceResamplingHelper.cxx#L503
132+
Based on https://github.com/Washington-University/workbench/blob/\
133+
7ba3345d161d567a4b628ceb02ab4471fc96cb20/src/Files/SurfaceResamplingHelper.cxx#L503
133134
"""
134135
dists = np.linalg.norm(self._coords, axis=1)
135136
return (dists.min() * tolerance) > dists.max()

nitransforms/surface.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,8 @@ def _barycentric_weights(vecs, coords):
589589
triangle, respectively. ``t`` is the scale that needs to be multiplied
590590
to ``coords`` to make it in the same plane as the three vertices.
591591
592-
From: https://github.com/neuroboros/neuroboros/blob/f2a2efb914e783add2bf06e0f3715236d3d8550e/src/neuroboros/surface/_barycentric.pyx#L9-L47
592+
From: https://github.com/neuroboros/neuroboros/blob/\
593+
f2a2efb914e783add2bf06e0f3715236d3d8550e/src/neuroboros/surface/_barycentric.pyx#L9-L47
593594
"""
594595
det = coords[0] * vecs[3, 0] + coords[1] * vecs[3, 1] + coords[2] * vecs[3, 2]
595596
if det == 0:

0 commit comments

Comments
 (0)