Skip to content

Commit

Permalink
Deletes commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
pc494 committed Aug 27, 2020
1 parent 7d3f113 commit 0db8c44
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions diffsims/utils/discretise_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,6 @@ def __atom_av_cpu(x0, x1, x2, pc, h): # pragma: no cover
x0, x1, x2 = x0 - i0, x1 - i1, x2 - i2
s = 0
for i in range(pc.shape[0]):
# v = __linear_interp(x0, i0, pc[i, 0])
# v *= __linear_interp(x1, i1, pc[i, 1])
# v *= __linear_interp(x2, i2, pc[i, 2])

v = __quadratic_interp(x0, i0, pc[i, 0])
v *= __quadratic_interp(x1, i1, pc[i, 1])
v *= __quadratic_interp(x2, i2, pc[i, 2])
Expand Down Expand Up @@ -237,10 +233,6 @@ def __atom_av_gpu(x0, x1, x2, pc, h):
x0, x1, x2 = x0 - i0, x1 - i1, x2 - i2
s = 0
for i in range(pc.shape[0]):
# v = __linear_interp(x0, i0, pc[i, 0])
# v *= __linear_interp(x1, i1, pc[i, 1])
# v *= __linear_interp(x2, i2, pc[i, 2])

v = __quadratic_interp(x0, i0, pc[i, 0])
v *= __quadratic_interp(x1, i1, pc[i, 1])
v *= __quadratic_interp(x2, i2, pc[i, 2])
Expand Down

0 comments on commit 0db8c44

Please sign in to comment.