We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eae806f commit 126515dCopy full SHA for 126515d
pylops/avo/prestack.py
@@ -183,14 +183,12 @@ def PrestackLinearModelling(
183
D = ncp.diag(0.5 * ncp.ones(nt0 - 1, dtype=dtype), k=1) - ncp.diag(
184
0.5 * ncp.ones(nt0 - 1, dtype=dtype), k=-1
185
)
186
- # D[0] = D[-1] = 0.
187
D = inplace_set(ncp.array(0.0), D, 0)
188
D = inplace_set(ncp.array(0.0), D, -1)
189
else:
190
D = ncp.diag(ncp.ones(nt0 - 1, dtype=dtype), k=1) - ncp.diag(
191
ncp.ones(nt0, dtype=dtype), k=0
192
193
- # D[-1] = 0.
194
195
D = get_block_diag(theta)(*([D] * nG))
196
@@ -343,7 +341,6 @@ def PrestackWaveletModelling(
343
341
D = ncp.diag(0.5 * np.ones(nt0 - 1, dtype=dtype), k=1) - ncp.diag(
344
342
0.5 * np.ones(nt0 - 1, dtype=dtype), k=-1
345
346
347
348
349
0 commit comments