From 4a0e4cb6104a1166576dd24138be2c4fcdde0cfd Mon Sep 17 00:00:00 2001 From: Roberto <37729096+RobertoDF@users.noreply.github.com> Date: Fri, 10 Nov 2023 00:31:18 +0100 Subject: [PATCH] Update trials.py Hotfix --- .../brain_observatory/behavior/data_objects/trials/trials.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/allensdk/brain_observatory/behavior/data_objects/trials/trials.py b/allensdk/brain_observatory/behavior/data_objects/trials/trials.py index 39950ecd3..176d86d49 100644 --- a/allensdk/brain_observatory/behavior/data_objects/trials/trials.py +++ b/allensdk/brain_observatory/behavior/data_objects/trials/trials.py @@ -275,7 +275,10 @@ def index(self) -> pd.Index: @property def change_time(self) -> pd.Series: - return self.data["change_time"] + if "change_time" in self.data: + return self.data["change_time"] + elif "change_time_no_display_delay" in self.data: + return self.data["change_time_no_display_delay"] @property def lick_times(self) -> pd.Series: