@property
    def n_dims(self):
        """
        The total number of dimensions.

        :type: `int`
        """
        if self.n_groups != 0:
            # Python version independent way of getting the first value
            for v in self._landmark_groups.values():
                return v.n_dims
        else:
            return None
dataset/ETHPy150Open menpo/menpo/menpo/landmark/base.py/LandmarkManager.n_dims/original