def _process_parameters(self, dim):
        """
        Dimension N must be specified; it cannot be inferred.
        """

        if dim is None or not np.isscalar(dim) or dim <= 1 or dim != int(dim):
            raise ValueError("Dimension of rotation must be specified,"
                             "and must be a scalar greater than 1.")

        return dim
dataset/ETHPy150Open scipy/scipy/scipy/stats/_multivariate.py/ortho_group_gen._process_parameters/original