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

        if dim is None or not np.isscalar(dim) or 1 <= dim 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/special_ortho_group_gen._process_parameters/swapped operands of `<=`