From f9a8b72a6705aa838ca6f6c32c4c834fbffedc02 Mon Sep 17 00:00:00 2001 From: seogi_macbook Date: Thu, 25 Jun 2020 18:29:40 -0700 Subject: [PATCH] fix bug for logarithmic interpolation --- .gitignore | 5 +++++ codes/simpegskytem/TDEM.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7b6115d..3e98bae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ *.pyc *.sublime-project *.sublime-workspace +.DS_Store + +dist/ +build/ +simpegskytem.egg-info/ diff --git a/codes/simpegskytem/TDEM.py b/codes/simpegskytem/TDEM.py index a667272..513f813 100644 --- a/codes/simpegskytem/TDEM.py +++ b/codes/simpegskytem/TDEM.py @@ -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,