123456789101112131415161718192021222324 |
- #!/usr/bin/env python3
- # -*- coding: utf-8 -*-
- """
- Created on Thu Aug 13 15:50:52 2020
- @author: galizia
- """
- def ctv222(time_trace, first_frame, last_frame, sampling_period, stim_on_times, stim_off_times, flags, p1):
- """
- ana's method -222
- mean(13-16) - mean(6-9) 4 frames each
- <insert a brief description of the method here>
- :param time_trace: iterable of numbers
- :param first_frame: int, interpreted as a frame number, where frames are numbered 1, 2, 3...
- :param last_frame: int, interpreted as a frame number, where frames are numbered 1, 2, 3...
- :param sampling_period: float, sampling period of <time_trace>, in ms
- :param stim_on_times: list of floats, stimulus onset times, in ms
- :param stim_off_times: list of floats, stimulus offset times, in ms
- :param flags: FlagsManager object, is a mapping of flag names to flags values with additional functions
- :param p1: pandas.Series object, internal representation of data
- :return: float
- """
- return np.mean(time_trace[13:17]) - np.mean(time_trace[6:10])
|