Skip to content

Commit d471df9

Browse files
committed
remove unused variables
1 parent 81e477f commit d471df9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/regfans/util.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,17 +151,14 @@ def first_hit(
151151
p1 = np.array(p1)
152152
H = np.array(H)
153153

154-
# defaults
155-
first_hit_ind = -1
156-
first_hit_dist = np.inf
157-
158-
inds = np.arange(H.shape[0])
154+
# helpers
159155
Hp0 = H@p0
160156
Hp1 = H@p1
161157

162158
mask = (Hp0>0) & (Hp0>Hp1)
163159

164160
# find first hit hyperplane
161+
first_hit_ind = -1
165162
for k in range(0, H.shape[0]):
166163
if not mask[k]:
167164
continue

0 commit comments

Comments
 (0)