(self, num_samps_per_chan)
Calculates the actual number of samples per channel to read.

        This method is necessary because the number of samples per channel
        can be set to NUM_SAMPLES_UNSET or -1, where each value entails a
        different method of calculating the actual number of samples per
        channel to read.

        Args:
            num_samps_per_chan (int): Specifies the number of samples per
                channel.
Calculates the actual number of samples per channel to read.
Calculates the actual number of samples per channel to read .
def _calculate_num_samps_per_chan(self, num_samps_per_chan):
        """
        Calculates the actual number of samples per channel to read.

        This method is necessary because the number of samples per channel
        can be set to NUM_SAMPLES_UNSET or -1, where each value entails a
        different method of calculating the actual number of samples per
        channel to read.

        Args:
            num_samps_per_chan (int): Specifies the number of samples per
                channel.
        """
        if num_samps_per_chan is NUM_SAMPLES_UNSET:
            return 1
        elif num_samps_per_chan == READ_ALL_AVAILABLE:
            acq_type = self.timing.samp_quant_samp_mode

            if (acq_type == AcquisitionType.FINITE and
                    not self.in_stream.read_all_avail_samp):
                return self.timing.samp_quant_samp_per_chan
            else:
                return self.in_stream.avail_samp_per_chan
        else:
            return num_samps_per_chan
def _calculate_num_samps_per_chan ( self , num_samps_per_chan ) : if num_samps_per_chan is NUM_SAMPLES_UNSET : return 1 elif num_samps_per_chan == READ_ALL_AVAILABLE : acq_type = self . timing . samp_quant_samp_mode if ( acq_type == AcquisitionType . FINITE and not self . in_stream . read_all_avail_samp ) : return self . timing . samp_quant_samp_per_chan else : return self . in_stream . avail_samp_per_chan else : return num_samps_per_chan