(self, data, is_many_chan, is_many_samp)
Verifies that the shape of the specified NumPy array can be used
        with the specified write method type, if the
        "verify_array_shape" property is set to True.

        Args:
            data (numpy.ndarray): Specifies the NumPy array to verify.
            is_many_chan (bool): Specifies if the write method is a many
                channel version.
            is_many_samp (bool): Specifies if the write method is a many
                sample version.
Verifies that the shape of the specified NumPy array can be used
        with the specified write method type, if the
        "verify_array_shape" property is set to True.
Verifies that the shape of the specified NumPy array can be used with the specified write method type if the verify_array_shape property is set to True .
def _verify_array(self, data, is_many_chan, is_many_samp):
        """
        Verifies that the shape of the specified NumPy array can be used
        with the specified write method type, if the
        "verify_array_shape" property is set to True.

        Args:
            data (numpy.ndarray): Specifies the NumPy array to verify.
            is_many_chan (bool): Specifies if the write method is a many
                channel version.
            is_many_samp (bool): Specifies if the write method is a many
                sample version.
        """
        if not self._verify_array_shape:
            return

        channels_to_write = self._task.channels
        number_of_channels = len(channels_to_write.channel_names)

        expected_num_dimensions = None
        if is_many_chan:
            if is_many_samp:
                expected_num_dimensions = 2
            else:
                expected_num_dimensions = 1

            if data.shape[0] != number_of_channels:
                self._task._raise_invalid_write_num_chans_error(
                    number_of_channels, data.shape[0])
        else:
            if is_many_samp:
                expected_num_dimensions = 1

        if expected_num_dimensions is not None:
            self._raise_error_if_invalid_write_dimensions(
                expected_num_dimensions, len(data.shape))
def _verify_array ( self , data , is_many_chan , is_many_samp ) : if not self . _verify_array_shape : return channels_to_write = self . _task . channels number_of_channels = len ( channels_to_write . channel_names ) expected_num_dimensions = None if is_many_chan : if is_many_samp : expected_num_dimensions = 2 else : expected_num_dimensions = 1 if data . shape [ 0 ] != number_of_channels : self . _task . _raise_invalid_write_num_chans_error ( number_of_channels , data . shape [ 0 ] ) else : if is_many_samp : expected_num_dimensions = 1 if expected_num_dimensions is not None : self . _raise_error_if_invalid_write_dimensions ( expected_num_dimensions , len ( data . shape ) )