From 0b131e885d9a47e3040f2580a50f31c7e93be21b Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 5 Nov 2024 11:52:32 +0200 Subject: [PATCH] one.alf.files -> one.alf.path (#49) --- requirements.txt | 2 +- src/spikeglx.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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