Skip to content

Commit

Permalink
Merge pull request #81 from vkazei/master
Browse files Browse the repository at this point in the history
fixes device mapping in location_interpolation.py
  • Loading branch information
ar4 authored Oct 25, 2024
2 parents 5386203 + 762e451 commit 00798f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deepwave/location_interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def receiver(self,
for i in range(n_per_shot):
out[shotidx, i, :] = (
amplitudes[shotidx, self.idxs[hicks_shotidx][i]] *
(self.weights[hicks_shotidx][i][0].reshape(-1, 1) *
self.weights[hicks_shotidx][i][1].reshape(
(self.weights[hicks_shotidx][i][0].to(amplitudes.device).reshape(-1, 1) *
self.weights[hicks_shotidx][i][1].to(amplitudes.device).reshape(
1, -1)).reshape(-1)[..., None]).sum(dim=0)
return out

0 comments on commit 00798f8

Please sign in to comment.