Skip to content

Commit

Permalink
fix bug for logarithmic interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
sgkang committed Jun 26, 2020
1 parent 7f30d38 commit f9a8b72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
*.pyc
*.sublime-project
*.sublime-workspace
.DS_Store

dist/
build/
simpegskytem.egg-info/
3 changes: 2 additions & 1 deletion codes/simpegskytem/TDEM.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ def simulate(

for ii in range(nSrc):
step_func = interp1d(
self.timeMesh.gridCC, data_stepoff[:, ii]
np.log10(self.timeMesh.gridCC), data_stepoff[:, ii]
)

data_temp = piecewise_pulse_fast(
step_func, time,
time_input_currents, input_currents,
Expand Down

0 comments on commit f9a8b72

Please sign in to comment.