From a68916292bff7394dff1bdefab045c7d173175da Mon Sep 17 00:00:00 2001 From: Kyu Hyun Lee Date: Thu, 7 Mar 2024 14:59:40 -0800 Subject: [PATCH] Update spikeinterface version (#852) * Save LFP as pynwb.ecephys.LFP * Fix formatting * Fix formatting * Update spikeinterface version * Update changelog * Fix CurationV1 get_sorting * Remove release note --------- Co-authored-by: Eric Denovellis --- CHANGELOG.md | 1 + environment.yml | 2 +- pyproject.toml | 2 +- src/spyglass/spikesorting/v1/curation.py | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ea47d2e4..49ec25e2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ - Replace deprecated calls to `yaml.safe_load()` #834 - Spikesorting: + - Increase the required `spikeinterface` version to >=0.99.1 for `get_sorting` method associated with `SpikeSorting` and `CurationV1` tables in spike sorting V1 pipeline. Limit version to <0.100 in case there are other issues with it. #852 - Bug fix in single artifact interval edge case #859 ## [0.5.0] (February 9, 2024) diff --git a/environment.yml b/environment.yml index c1b2a25fd..0f5e19187 100644 --- a/environment.yml +++ b/environment.yml @@ -46,5 +46,5 @@ dependencies: - pubnub<=6.4.0 - pynwb>=2.2.0,<3 - sortingview>=0.11 - - spikeinterface>=0.98.2,<0.99 + - spikeinterface>=0.99.1,<0.100 - . diff --git a/pyproject.toml b/pyproject.toml index b17172de5..ffb8d0df6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ dependencies = [ "ripple_detection", "seaborn", "sortingview>=0.11", - "spikeinterface>=0.98.2,<0.99", + "spikeinterface>=0.99.1,<0.100", "track_linearization>=2.3", ] dynamic = ["version"] diff --git a/src/spyglass/spikesorting/v1/curation.py b/src/spyglass/spikesorting/v1/curation.py index 32f6c88ca..5e862dd90 100644 --- a/src/spyglass/spikesorting/v1/curation.py +++ b/src/spyglass/spikesorting/v1/curation.py @@ -213,7 +213,7 @@ def get_sorting(cls, key: dict) -> si.BaseSorting: } ] - sorting = si.NumpySorting.from_dict( + sorting = si.NumpySorting.from_unit_dict( units_dict_list, sampling_frequency=sampling_frequency )