File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11__all__ = ["AcousticWave2D" ]
22
3- from typing import Tuple
3+ from typing import Any , NewType , Tuple
44
55import numpy as np
66
1515 from examples .seismic import AcquisitionGeometry , Model
1616 from examples .seismic .acoustic import AcousticWaveSolver
1717 from examples .seismic .utils import _CustomSource
18+ else :
19+ AcousticWaveSolver = Any
20+
21+ AcousticWaveSolverType = NewType ("AcousticWaveSolver" , AcousticWaveSolver )
1822
1923
2024class AcousticWave2D (LinearOperator ):
@@ -285,7 +289,7 @@ def srcillumination_allshots(self, savewav: bool = False) -> None:
285289 self .src_wavefield .append (src_wav )
286290 self .src_illumination += src_ill
287291
288- def _born_oneshot (self , solver : AcousticWaveSolver , dm : NDArray ) -> NDArray :
292+ def _born_oneshot (self , solver : AcousticWaveSolverType , dm : NDArray ) -> NDArray :
289293 """Born modelling for one shot
290294
291295 Parameters
You can’t perform that action at this time.
0 commit comments