Commit f65415e7 authored by Reimar Heinrich Leike's avatar Reimar Heinrich Leike

fixed that rounding would truncate instead of rounding downm

parent 9cdba817
Pipeline #43340 passed with stages
in 8 minutes and 3 seconds
......@@ -75,8 +75,8 @@ class LinearInterpolator(LinearOperator):
# dimensions.
dist = np.array(dist).reshape(-1, 1)
pos = sampling_points/dist
excess = pos - pos.astype(np.int64)
pos = pos.astype(np.int64)
excess = pos - np.floor(pos)
pos = np.floor(pos).astype(np.int64)
max_index = np.array(self.domain.shape).reshape(-1, 1)
data = np.zeros((len(mg[0]), N_points))
ii = np.zeros((len(mg[0]), N_points), dtype=np.int64)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment