From 333bb045a6dcfaec4433c4ec0bd29ccc91b1cd31 Mon Sep 17 00:00:00 2001 From: wendtalexander Date: Sat, 21 Jan 2023 21:32:40 +0100 Subject: [PATCH] wrong folder --- code/behavior.py | 26 ------------------- .../plot_event_timeline.py | 0 2 files changed, 26 deletions(-) rename plot_event_timeline.py => code/plot_event_timeline.py (100%) diff --git a/code/behavior.py b/code/behavior.py index da02838..dd32ef2 100644 --- a/code/behavior.py +++ b/code/behavior.py @@ -37,32 +37,6 @@ class Behavior: new_key = new_key.lower() setattr(self, new_key, np.array(self.dataframe[key])) -""" -1 - chasing onset -2 - chasing offset -3 - physical contact event - -temporal encpding needs to be corrected ... not exactly 25FPS. - -### correspinding python code ### - - factor = 1.034141 - LED_on_time_BORIS = np.load(os.path.join(folder_path, 'LED_on_time.npy'), allow_pickle=True) - last_LED_t_BORIS = LED_on_time_BORIS[-1] - real_time_range = times[-1] - times[0] - shift = last_LED_t_BORIS - real_time_range * factor - - data = pd.read_csv(os.path.join(folder_path, file[1:-7] + '.csv')) - boris_times = data['Start (s)'] - data_times = [] - - for Cevent_t in boris_times: - Cevent_boris_times = (Cevent_t - shift) / factor - data_times.append(Cevent_boris_times) - - data_times = np.array(data_times) - behavior = data['Behavior'] -""" def main(datapath: str): # behabvior is pandas dataframe with all the data diff --git a/plot_event_timeline.py b/code/plot_event_timeline.py similarity index 100% rename from plot_event_timeline.py rename to code/plot_event_timeline.py