From 487f6db9d3b533505ac4455ea63cd46e623fdf0c Mon Sep 17 00:00:00 2001 From: bjhardcastle Date: Tue, 30 Apr 2024 23:01:43 -0700 Subject: [PATCH] Fix camera component names in nwb --- src/npc_sessions/sessions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/npc_sessions/sessions.py b/src/npc_sessions/sessions.py index 8718d18..8d3a5d5 100644 --- a/src/npc_sessions/sessions.py +++ b/src/npc_sessions/sessions.py @@ -2694,7 +2694,7 @@ def _facemap(self) -> tuple[pynwb.TimeSeries, ...]: continue nwb_camera_name = self.mvr_to_nwb_camera_name[camera_name] timestamps = next( - t for t in self._video_frame_times if t.name == nwb_camera_name + t for t in self._video_frame_times if nwb_camera_name in t.name ).timestamps assert len(timestamps) == npc_mvr.get_total_frames_in_video(video_path) try: