(self, states)
Raise an error if the states have the wrong dimension.

        Parameters
        ----------
        states : ndarray
Raise an error if the states have the wrong dimension.
Raise an error if the states have the wrong dimension .
def _check_dimensions(self, states):
        """Raise an error if the states have the wrong dimension.

        Parameters
        ----------
        states : ndarray

        """
        if not states.shape[1] == self.ndim:
            raise DimensionError('the input argument has the wrong '
                                 'dimensions.')
def _check_dimensions ( self , states ) : if not states . shape [ 1 ] == self . ndim : raise DimensionError ( 'the input argument has the wrong ' 'dimensions.' )