diff --git a/requirements.txt b/requirements.txt index 21c32a2..959c544 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,6 +3,6 @@ joblib matplotlib mtscomp numpy >= 1.21.6 -one-api +ONE-api >= 2.11.0 pandas scipy >= 1.11 diff --git a/src/spikeglx.py b/src/spikeglx.py index 5a17818..a2d1788 100644 --- a/src/spikeglx.py +++ b/src/spikeglx.py @@ -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 @@ -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