def pair(self, d):
        assert isinstance(d, self.surveyPair), "Data object must be an instance of a %s class."%(self.surveyPair.__name__)
        if d.ispaired:
            raise Exception("The survey object is already paired to a problem. Use survey.unpair()")
        self._survey = d
        d._prob = self
Bind a survey to this problem instance using pointers.
dataset/ETHPy150Open simpeg/simpeg/SimPEG/Problem.py/BaseProblem.pair