mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-19 11:28:00 +08:00
Major Reorganization (Things are likely still broken...)
Added Parameter to Utils, which hints at where we are going with functions as parameters.
This commit is contained in:
@@ -193,7 +193,7 @@ if __name__ == '__main__':
|
||||
p0 = [5, 10]
|
||||
p1 = [15, 50]
|
||||
condVals = [sig1, sig2]
|
||||
mSynth = Utils.ModelBuilder.defineBlockConductivity(p0,p1,M.gridCC,condVals)
|
||||
mSynth = Utils.ModelBuilder.defineBlockConductivity(M.gridCC,p0,p1,condVals)
|
||||
plt.colorbar(M.plotImage(mSynth))
|
||||
# plt.show()
|
||||
|
||||
@@ -217,7 +217,7 @@ if __name__ == '__main__':
|
||||
u = prob.field(mSynth)
|
||||
u = data.reshapeFields(u)
|
||||
M.plotImage(u[:,10])
|
||||
# plt.show()
|
||||
plt.show()
|
||||
|
||||
# Now set up the prob to do some minimization
|
||||
# prob.dobs = dobs
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from SimPEG import Mesh, Model, Problem, Data, Inverse, np
|
||||
from SimPEG import Mesh, Model, Problem, Data, Inversion, np
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user