Skip to content

Commit

Permalink
Merge pull request #720 from thejanzimmermann/main
Browse files Browse the repository at this point in the history
fix for cases in which filename contains string "ap" such as subject id
  • Loading branch information
jacobpennington authored Jun 18, 2024
2 parents 018fe09 + 47e6f95 commit b00b8f1
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 b00b8f1

Please sign in to comment.