diff --git a/.gitignore b/.gitignore index 06a56dd..38d7b8e 100644 --- a/.gitignore +++ b/.gitignore @@ -137,3 +137,6 @@ dmypy.json # MacOs **/.DS_Store + +# Vscode +./vscode diff --git a/src/aind_ephys_rig_qc/temporal_alignment.py b/src/aind_ephys_rig_qc/temporal_alignment.py index b6d732d..3a93cc7 100644 --- a/src/aind_ephys_rig_qc/temporal_alignment.py +++ b/src/aind_ephys_rig_qc/temporal_alignment.py @@ -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 @@ -239,7 +251,7 @@ def replace_original_timestamps( ) -def align_timestamps( +def align_timestamps( # noqa directory, original_timestamp_filename="original_timestamps.npy", pdf=None,