Skip to content

Commit

Permalink
Update paths to test files
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhardcastle authored Mar 7, 2024
1 parent 55439fc commit d1c2214
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/npc_sync/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def get_single_sync_path(
"""From an iterable of paths, return the one with the expected date and a
.sync or .h5 extension.
>>> get_single_sync_path('s3://aind-ephys-data/ecephys_676909_2023-12-14_12-43-11/behavior_videos')
S3Path('s3://aind-ephys-data/ecephys_676909_2023-12-14_12-43-11/behavior_videos/20231214T124311.h5')
>>> get_single_sync_path('s3://aind-ephys-data/ecephys_676909_2023-12-14_12-43-11/behavior')
S3Path('s3://aind-ephys-data/ecephys_676909_2023-12-14_12-43-11/behavior/20231214T124311.h5')
"""
if isinstance(dir_or_paths, str):
dir_or_paths = npc_io.from_pathlike(dir_or_paths)
Expand Down Expand Up @@ -142,7 +142,7 @@ class SyncDataset:
Examples
--------
>>> dset = SyncDataset('s3://aind-ephys-data/ecephys_676909_2023-12-14_12-43-11/behavior_videos/20231214T124311.h5')
>>> dset = SyncDataset('s3://aind-ephys-data/ecephys_676909_2023-12-14_12-43-11/behavior/20231214T124311.h5')
>>> dset.validate(opto=True, audio=True)
>>> with SyncDataset('my_h5_file.h5') as d: # doctest: +SKIP
Expand Down

0 comments on commit d1c2214

Please sign in to comment.