def _get_trial(df, block, trial_number, block_col='BlockNumber',
               trial_col='TrialNumber'):
    """Returns specified trial from specified block. Assumes the block and trial
     columns are consistent across experiments"""
    return df.groupby([block_col, trial_col]).get_group((block, trial_number))