Skip to content

Commit 9e69262

Browse files
committed
fix bug in path for sync
1 parent ab4dc93 commit 9e69262

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/cheese3d/cheese3d/project.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,20 +365,20 @@ def synchronize(self):
365365
# run video synchronization first
366366
for recording, views in self.sessions.items():
367367
rprint(f"[bold green]Synchronizing recording videos:[/bold green] {recording.name}")
368-
ref_video = self.path / views[self.sync.ref_view]
368+
ref_video = views[self.sync.ref_view]
369369
ref_crop = self.view_config[self.sync.ref_view].get_crop(self.sync.ref_crop)
370370
sync_targets = {}
371371
for view, video in views.items():
372372
if view == self.sync.ref_view:
373373
continue
374374
crop = self.view_config[view].get_crop(self.sync.ref_crop)
375-
sync_targets[view] = (self.path / video, crop)
375+
sync_targets[view] = (video, crop)
376376
synchronize_videos(self.sync, (ref_video, ref_crop), sync_targets, fps=self.fps)
377377
# run ephys synchronization if available
378378
if self.ephys_sessions and self.ephys_param:
379379
for recording, ephys_file in self.ephys_sessions.items():
380380
rprint(f"[bold green]Synchronizing recording ephys:[/bold green] {recording.name}")
381-
ref_video = self.path / self.sessions[recording][self.sync.ref_view]
381+
ref_video = self.sessions[recording][self.sync.ref_view]
382382
ref_crop = self.view_config[self.sync.ref_view].get_crop(self.sync.ref_crop)
383383
ephys_path = self.path / ephys_file
384384
synchronize_ephys(self.sync, (ref_video, ref_crop), ephys_path, self.ephys_param, fps=self.fps)

0 commit comments

Comments
 (0)