Skip to content

Commit

Permalink
one.alf.files -> one.alf.path
Browse files Browse the repository at this point in the history
  • Loading branch information
k1o0 committed Nov 1, 2024
1 parent eff1954 commit d087c09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ joblib
matplotlib
mtscomp
numpy >= 1.21.6
one-api
ONE-api >= 2.11.0
pandas
scipy >= 1.11
4 changes: 2 additions & 2 deletions src/spikeglx.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import mtscomp
from iblutil.io import hashfile
from iblutil.util import Bunch
import one.alf.files
import one.alf.path

import neuropixel

Expand All @@ -24,7 +24,7 @@ def _get_companion_file(sglx_file, pattern='.meta'):
sglx_file = Path(sglx_file)
companion_file = sglx_file.with_suffix(pattern)
if not companion_file.exists():
search_pattern = f"{one.alf.files.remove_uuid_string(sglx_file).stem}*{pattern}"
search_pattern = f"{one.alf.path.remove_uuid_string(sglx_file).stem}*{pattern}"
companion_file = next(sglx_file.parent.glob(search_pattern), companion_file)
return companion_file

Expand Down

0 comments on commit d087c09

Please sign in to comment.