SimPEG data object

This commit is contained in:
rowanc1
2013-12-06 16:53:07 -08:00
parent b5eb72e097
commit 09938ed7df
2 changed files with 23 additions and 2 deletions
+3 -2
View File
@@ -3,10 +3,11 @@ import scipy.sparse as sp
import utils
from utils import Solver
import mesh
import inverse
import visualize
import data
import forward
import regularization
import inverse
import visualize
import examples
import scipy.version as _v
+20
View File
@@ -0,0 +1,20 @@
from SimPEG import utils
class SimPEGData(object):
"""Data holds the observed data, and the standard deviations."""
__metaclass__ = utils.Save.Savable
std = None #: Estimated Standard Deviations
dobs = None #: Observed data
dtrue = None #: True data, if data is synthetic
mtrue = None #: True model, if data is synthetic
def __init__(self, prob, **kwargs):
utils.setKwargs(self, **kwargs)
self.prob = prob
def isSynthetic(self):
"Check if the data is synthetic."
return self.mtrue is not None