def _getModelProperty(self):
        prop = self
        def fget(self):
            mapping = getattr(self, '%sMap'%prop.name)
            if mapping is None:
                return None
            index = getattr(self.propMap, '%sIndex'%prop.name)
            return self.vector[index]
        return property(fget=fget)
dataset/ETHPy150Open simpeg/simpeg/SimPEG/PropMaps.py/Property._getModelProperty/original