def _get_output_source_group(output, out_id):
    """Return output source group number for a specific data output."""
    try:
        return output[output['id'] == out_id].iloc[0, 1]
    except:
        print(f'ERROR: Cannot get output source group for output id {out_id}!')
        raise