We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_photodiode
1 parent 8f02890 commit db957b0Copy full SHA for db957b0
src/npc_sessions/sessions.py
@@ -1997,7 +1997,7 @@ def is_photodiode(self) -> bool:
1997
"""
1998
if not self.is_task:
1999
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)
+ task_frame_times = next(v for k,v in self.stim_frame_times.items() if self.task_stim_name in k)
2001
return any(np.array_equal(task_frame_times, array) for array in self.sync_data.constant_lag_frame_display_time_blocks)
2002
2003
0 commit comments