Skip to content

Commit

Permalink
Fix getting sync data
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhardcastle committed Nov 2, 2024
1 parent 7f746b1 commit 59bec1a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/npc_mvr/mvr.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ def __init__(
self._sync_data = npc_sync.get_sync_data(sync_path)
else:
try:
npc_sync.get_single_sync_path(self.sync_dir)
sync_path = npc_sync.get_single_sync_path(self.sync_dir)
except (ValueError, FileNotFoundError):
self._sync_data = None
else:
self._sync_data = npc_sync.get_sync_data(sync_path)
self._video_name_filter = video_name_filter or ""
self.task_data_or_path = task_data_or_path # for behavior box sessions

Expand Down Expand Up @@ -1181,9 +1183,6 @@ def validate_stim_frame_times_for_behavior_session(
return np.subtract(predictedVisOnsetFrames, visOnsetFrames)

if __name__ == "__main__":
d = MVRDataset("s3://aind-ephys-data/ecephys_670248_2023-08-03_12-04-15")
d.validate()

from npc_mvr import testmod

testmod()

0 comments on commit 59bec1a

Please sign in to comment.