Skip to content

Commit

Permalink
minor: switch np.int to np.int32
Browse files Browse the repository at this point in the history
  • Loading branch information
mrava87 committed Nov 29, 2023
1 parent 86535f8 commit e6bbb97
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pymarchenko/marchenko.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def apply_onepoint(self, trav, G0=None, nfft=None, rtm=False, greens=False,
"""
# Create window
trav_off = trav - self.toff
trav_off = np.round(trav_off / self.dt).astype(np.int)
trav_off = np.round(trav_off / self.dt).astype(np.int32)

w = np.zeros((self.nr, self.nt), dtype=self.dtype)
for ir in range(self.nr):
Expand Down Expand Up @@ -459,7 +459,7 @@ def apply_multiplepoints(self, trav, G0=None, nfft=None,

# Create window
trav_off = trav - self.toff
trav_off = np.round(trav_off / self.dt).astype(np.int)
trav_off = np.round(trav_off / self.dt).astype(np.int32)

w = np.zeros((self.nr, nvs, self.nt), dtype=self.dtype)
for ir in range(self.nr):
Expand Down
2 changes: 1 addition & 1 deletion pymarchenko/neumarchenko.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def apply_onepoint(self, trav, G0=None, nfft=None, rtm=False, greens=False,
"""
# Create window
trav_off = trav - self.toff
trav_off = np.round(trav_off / self.dt).astype(np.int)
trav_off = np.round(trav_off / self.dt).astype(np.int32)

w = np.zeros((self.nr, self.nt), dtype=self.dtype)
for ir in range(self.nr):
Expand Down
8 changes: 4 additions & 4 deletions pymarchenko/raymarchenko.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ def apply_onepoint(self, travsrc, travrec, G0=None, nfft=None, rtm=False, greens
"""
# Create windows
travsrc_off = travsrc - self.toff
travsrc_off = np.round(travsrc_off / self.dt).astype(np.int)
travsrc_off = np.round(travsrc_off / self.dt).astype(np.int32)
travrec_off = travrec - self.toff
travrec_off = np.round(travrec_off / self.dt).astype(np.int)
travrec_off = np.round(travrec_off / self.dt).astype(np.int32)

ws = np.zeros((self.ns, self.nt), dtype=self.dtype)
wr = np.zeros((self.nr, self.nt), dtype=self.dtype)
Expand Down Expand Up @@ -426,9 +426,9 @@ def apply_multiplepoints(self, travsrc, travrec, G0=None, nfft=None,

# Create window
travsrc_off = travsrc - self.toff
travsrc_off = np.round(travsrc_off / self.dt).astype(np.int)
travsrc_off = np.round(travsrc_off / self.dt).astype(np.int32)
travrec_off = travrec - self.toff
travrec_off = np.round(travrec_off / self.dt).astype(np.int)
travrec_off = np.round(travrec_off / self.dt).astype(np.int32)

ws = np.zeros((self.ns, nvs, self.nt), dtype=self.dtype)
wr = np.zeros((self.nr, nvs, self.nt), dtype=self.dtype)
Expand Down

0 comments on commit e6bbb97

Please sign in to comment.