def METHOD_NAME(waveform_infos, sample_data, num_samples_per_waveform):
    '''Chunk up flat array of sample_data and copy each chunk into individual WaveformInfo instance
    Args:
        waveform_infos (Iterable of WaveformInfo): WaveformInfo class instances
        sample_data (Iterable of float): Waveform sample data
        num_samples_per_waveform (int): Number of samples belonging to each waveform
    '''
    for i in range(len(waveform_infos)):
        start = i * num_samples_per_waveform
        end = start + waveform_infos[i]._actual_samples
        # We use the actual number of samples returned from the device to determine the end of the waveform.
        # We then remove it from waveform_info since the length of the waveform will tell us that information.
        waveform_infos[i]._actual_samples = None
        waveform_infos[i].samples = sample_data[start:end]