def baseline_integrate_chan_after_time( filename, baseline, start, channel): # channel is assumed to be 1 or 2, adjust to 0 index return baseline_integrate( ( points[channel-1] for points in gen_points_after_interval(filename, start) ), baseline ) # baseline_integrate
def baseline_integrate_avg_of_chans_after_time( filename, baseline, start): return baseline_integrate( gen_avg_pair_stream(gen_points_after_interval(filename, start)), baseline )