Skip to content

Commit

Permalink
minor: removed commented code in prestack
Browse files Browse the repository at this point in the history
  • Loading branch information
mrava87 committed Jul 4, 2024
1 parent eae806f commit 126515d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pylops/avo/prestack.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,12 @@ def PrestackLinearModelling(
D = ncp.diag(0.5 * ncp.ones(nt0 - 1, dtype=dtype), k=1) - ncp.diag(
0.5 * ncp.ones(nt0 - 1, dtype=dtype), k=-1
)
# D[0] = D[-1] = 0.
D = inplace_set(ncp.array(0.0), D, 0)
D = inplace_set(ncp.array(0.0), D, -1)
else:
D = ncp.diag(ncp.ones(nt0 - 1, dtype=dtype), k=1) - ncp.diag(
ncp.ones(nt0, dtype=dtype), k=0
)
# D[-1] = 0.
D = inplace_set(ncp.array(0.0), D, -1)
D = get_block_diag(theta)(*([D] * nG))

Expand Down Expand Up @@ -343,7 +341,6 @@ def PrestackWaveletModelling(
D = ncp.diag(0.5 * np.ones(nt0 - 1, dtype=dtype), k=1) - ncp.diag(
0.5 * np.ones(nt0 - 1, dtype=dtype), k=-1
)
# D[0] = D[-1] = 0.
D = inplace_set(ncp.array(0.0), D, 0)
D = inplace_set(ncp.array(0.0), D, -1)
D = get_block_diag(theta)(*([D] * nG))
Expand Down

0 comments on commit 126515d

Please sign in to comment.