Skip to content

Commit

Permalink
fix depth
Browse files Browse the repository at this point in the history
  • Loading branch information
keurfonluu committed Jan 20, 2021
1 parent a7b198d commit a3a7e0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions disba/_sensitivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __call__(self, t, mode=0, wave="rayleigh", parameter="velocity_s"):
)

return SensitivityKernel(
self._thickness.cumsum() - self._thickness[0],
numpy.insert(self._thickness.cumsum()[:-1], 0, 0.0),
kernel,
t,
c1,
Expand Down Expand Up @@ -184,7 +184,7 @@ def __call__(self, t, mode=0, wave="rayleigh", parameter="velocity_s"):
)

return SensitivityKernel(
self._thickness.cumsum() - self._thickness[0],
numpy.insert(self._thickness.cumsum()[:-1], 0, 0.0),
kernel,
t,
c1,
Expand Down Expand Up @@ -274,7 +274,7 @@ def __call__(self, t, mode=0, parameter="velocity_s"):
par[i] *= fac

return SensitivityKernel(
self._thickness.cumsum() - self._thickness[0],
numpy.insert(self._thickness.cumsum()[:-1], 0, 0.0),
kernel,
t,
None,
Expand Down

0 comments on commit a3a7e0c

Please sign in to comment.