@landmarks.setter
    def landmarks(self, value):
        # firstly, make sure the dim is correct. Note that the dim can be None
        lm_n_dims = value.n_dims
        if lm_n_dims is not None and lm_n_dims != self.n_dims:
            raise ValueError(
                "Trying to set {}D landmarks on a "
                "{}D object".format(value.n_dims, self.n_dims))
        self._landmarks = value.copy()
Landmarks setter.
dataset/ETHPy150Open menpo/menpo/menpo/landmark/base.py/Landmarkable.landmarks