Skip to content

Commit db957b0

Browse files
committed
Fix is_photodiode
1 parent 8f02890 commit db957b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/npc_sessions/sessions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1997,7 +1997,7 @@ def is_photodiode(self) -> bool:
19971997
"""
19981998
if not self.is_task:
19991999
raise AttributeError(f"{self.id} is not a session with behavior task")
2000-
task_frame_times = next(v for k,v in self.stim_frame_times if self.task_stim_name in k)
2000+
task_frame_times = next(v for k,v in self.stim_frame_times.items() if self.task_stim_name in k)
20012001
return any(np.array_equal(task_frame_times, array) for array in self.sync_data.constant_lag_frame_display_time_blocks)
20022002

20032003

0 commit comments

Comments
 (0)