Skip to content

Commit

Permalink
np.float fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rama Vasudevan committed Nov 9, 2023
1 parent da14791 commit 4c3ce74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BGlib/be/analysis/utils/be_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def loop_fit_jacobian(vdc, coef_vec):
vdc = np.squeeze(np.array(vdc))
num_steps = vdc.size

J = np.zeros([num_steps, 9], dtype=np.float32)
J = np.zeros([num_steps, 9], dtype=float)

V1 = vdc[:int(num_steps / 2)]
V2 = vdc[int(num_steps / 2):]
Expand Down Expand Up @@ -602,8 +602,8 @@ def intersection(L1, L2):
return intersection(line(A, B), line(C, D))

# start and end coordinates of each line segment defining the convex hull
outline_1 = np.zeros((hull.simplices.shape[0], 2), dtype=np.float)
outline_2 = np.zeros((hull.simplices.shape[0], 2), dtype=np.float)
outline_1 = np.zeros((hull.simplices.shape[0], 2), dtype=float)
outline_2 = np.zeros((hull.simplices.shape[0], 2), dtype=float)
for index, pair in enumerate(hull.simplices):
outline_1[index, :] = points[pair[0]]
outline_2[index, :] = points[pair[1]]
Expand Down

0 comments on commit 4c3ce74

Please sign in to comment.