Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Jul 1, 2024
1 parent 64f83fe commit a16b444
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,6 @@ dmypy.json

# MacOs
**/.DS_Store

# Vscode
./vscode
14 changes: 13 additions & 1 deletion src/aind_ephys_rig_qc/temporal_alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,18 @@ def replace_original_timestamps(
original_timestamp_filename="original_timestamps.npy",
sync_timestamp_file="localsync_timestamps.npy",
):
"""
Replace the original timestamps with the synchronized timestamps.
Parameters
----------
directory : str
The path to the Open Ephys data directory
original_timestamp_filename : str
The name of the file for archiving the original timestamps
sync_timestamp_file : str
The name of the file for the synchronized timestamps
"""
target_timestamp_files_name = "timestamps.npy"
for dirpath, dirnames, filenames in os.walk(directory):
# Check if both files are present in the current directory
Expand All @@ -239,7 +251,7 @@ def replace_original_timestamps(
)


def align_timestamps(
def align_timestamps( # noqa
directory,
original_timestamp_filename="original_timestamps.npy",
pdf=None,
Expand Down

0 comments on commit a16b444

Please sign in to comment.