Updates to documentation and DC utilities.

This commit is contained in:
Rowan Cockett
2016-06-26 16:07:35 -06:00
parent 57f8e35db7
commit 51c112a529
5 changed files with 21 additions and 12 deletions
+8 -2
View File
@@ -1,5 +1,5 @@
from SimPEG import Mesh, Utils, np, sp
import SimPEG.DCIP as DC
from SimPEG.EM.Static import DC, Utils as StaticUtils
import time
def run(loc=None, sig=None, radi=None, param=None, surveyType='dipole-dipole', unitType='appConductivity', plotIt=True):
@@ -74,7 +74,13 @@ def run(loc=None, sig=None, radi=None, param=None, surveyType='dipole-dipole', u
# We will handle the geometry of the survey for you and create all the combination of tx-rx along line
# [Tx, Rx] = DC.gen_DCIPsurvey(locs, mesh, surveyType, param[0], param[1], param[2])
survey, Tx, Rx = DC.gen_DCIPsurvey(locs, mesh, surveyType, param[0], param[1], param[2])
srcList = StaticUtils.gen_DCIPsurvey(locs, mesh, surveyType, param[0], param[1], param[2])
print(srcList)
raise Exception('The output of the function changed. We need to create the survey and get Rx to continue.')
# Something like this!
survey, Tx, Rx
# Define some global geometry
dl_len = np.sqrt( np.sum((locs[0,:] - locs[1,:])**2) )