Skip to content

Commit 95e0b89

Browse files
committed
[CLN]
1 parent 0516ed4 commit 95e0b89

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

gempy_engine/modules/kernel_constructor/_structs.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -184,27 +184,6 @@ def __init__(self, x_size: int, y_size: int, n_drift_eq: int, drift_start_post_x
184184

185185
_cast_tensors(self)
186186

187-
@classmethod
188-
def old_method(cls, x_size: int, y_size: int, n_drift_eq: int): # * This does not account for faults
189-
sel_i = np.zeros((x_size, 2))
190-
sel_j = np.zeros((y_size, 2))
191-
192-
# ! TODO [x]: This need to account for faults too. This is what the new __init__ does.
193-
194-
sel_i[:-n_drift_eq, 0] = 1
195-
sel_i[-n_drift_eq:, 1] = 1
196-
197-
sel_j[:-n_drift_eq, 0] = -1
198-
sel_j[-n_drift_eq:, 1] = -1
199-
200-
foo = cls(1, 1, 1, 1)
201-
foo.sel_ui = sel_i[:, None, :]
202-
foo.sel_vj = sel_j[None, :, :]
203-
204-
if BackendTensor.is_pykeops_enabled():
205-
_upgrade_kernel_input_to_keops_tensor_numpy(cls)
206-
return foo
207-
208187

209188
@dataclass
210189
class KernelInput:

0 commit comments

Comments
 (0)