Skip to content

Commit

Permalink
fix for cases in which filename contains string "ap" such as subject id
Browse files Browse the repository at this point in the history
  • Loading branch information
thejanzimmermann authored Jun 18, 2024
1 parent 018fe09 commit 47e6f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kilosort/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def find_binary(data_dir: Union[str, os.PathLike]) -> Path:
# TODO: Why give this preference? Not all binary files will have this tag.
# If there are multiple binary files, find one with "ap" tag
if len(filenames) > 1:
filenames = [f for f in filenames if 'ap' in f.as_posix()]
filenames = [f for f in filenames if 'ap.bin' in f.as_posix()]

# If there is still more than one, raise an error, user needs to specify
# full path.
Expand Down

0 comments on commit 47e6f95

Please sign in to comment.