Skip to content

Commit 126515d

Browse files
committed
minor: removed commented code in prestack
1 parent eae806f commit 126515d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pylops/avo/prestack.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,12 @@ def PrestackLinearModelling(
183183
D = ncp.diag(0.5 * ncp.ones(nt0 - 1, dtype=dtype), k=1) - ncp.diag(
184184
0.5 * ncp.ones(nt0 - 1, dtype=dtype), k=-1
185185
)
186-
# D[0] = D[-1] = 0.
187186
D = inplace_set(ncp.array(0.0), D, 0)
188187
D = inplace_set(ncp.array(0.0), D, -1)
189188
else:
190189
D = ncp.diag(ncp.ones(nt0 - 1, dtype=dtype), k=1) - ncp.diag(
191190
ncp.ones(nt0, dtype=dtype), k=0
192191
)
193-
# D[-1] = 0.
194192
D = inplace_set(ncp.array(0.0), D, -1)
195193
D = get_block_diag(theta)(*([D] * nG))
196194

@@ -343,7 +341,6 @@ def PrestackWaveletModelling(
343341
D = ncp.diag(0.5 * np.ones(nt0 - 1, dtype=dtype), k=1) - ncp.diag(
344342
0.5 * np.ones(nt0 - 1, dtype=dtype), k=-1
345343
)
346-
# D[0] = D[-1] = 0.
347344
D = inplace_set(ncp.array(0.0), D, 0)
348345
D = inplace_set(ncp.array(0.0), D, -1)
349346
D = get_block_diag(theta)(*([D] * nG))

0 commit comments

Comments
 (0)