Skip to content

Commit

Permalink
bug: added AcousticWaveSolverType
Browse files Browse the repository at this point in the history
  • Loading branch information
mrava87 committed Aug 13, 2024
1 parent 0c2e852 commit 1b3ad18
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pylops/waveeqprocessing/twoway.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__all__ = ["AcousticWave2D"]

from typing import Tuple
from typing import Any, NewType, Tuple

import numpy as np

Expand All @@ -15,6 +15,10 @@
from examples.seismic import AcquisitionGeometry, Model
from examples.seismic.acoustic import AcousticWaveSolver
from examples.seismic.utils import _CustomSource
else:
AcousticWaveSolver = Any

AcousticWaveSolverType = NewType("AcousticWaveSolver", AcousticWaveSolver)


class AcousticWave2D(LinearOperator):
Expand Down Expand Up @@ -285,7 +289,7 @@ def srcillumination_allshots(self, savewav: bool = False) -> None:
self.src_wavefield.append(src_wav)
self.src_illumination += src_ill

def _born_oneshot(self, solver: AcousticWaveSolver, dm: NDArray) -> NDArray:
def _born_oneshot(self, solver: AcousticWaveSolverType, dm: NDArray) -> NDArray:
"""Born modelling for one shot
Parameters
Expand Down

0 comments on commit 1b3ad18

Please sign in to comment.