From dedfd2ac59cc90d2725ff2f48eb1800e4bf41a37 Mon Sep 17 00:00:00 2001 From: olivier Date: Sat, 5 Oct 2024 09:07:47 +0100 Subject: [PATCH] remove neurodsp after grace period expired --- src/neurodsp/__init__.py | 8 -------- src/tests/unit/cpu/test_ibldsp.py | 22 ---------------------- 2 files changed, 30 deletions(-) delete mode 100644 src/neurodsp/__init__.py diff --git a/src/neurodsp/__init__.py b/src/neurodsp/__init__.py deleted file mode 100644 index 99f527a..0000000 --- a/src/neurodsp/__init__.py +++ /dev/null @@ -1,8 +0,0 @@ -import ibldsp, sys -from warnings import warn - -sys.modules["neurodsp"] = ibldsp -warn( - "neurodsp has been renamed to ibldsp and the old name will be deprecated on 01-Oct-2024.", - FutureWarning, -) diff --git a/src/tests/unit/cpu/test_ibldsp.py b/src/tests/unit/cpu/test_ibldsp.py index a8214c9..15dea7e 100644 --- a/src/tests/unit/cpu/test_ibldsp.py +++ b/src/tests/unit/cpu/test_ibldsp.py @@ -626,25 +626,3 @@ def test_compute_features(self): self.assertEqual(multi_index, list(df.index)) self.assertEqual(["snippet_id", "channel_id"], list(df.index.names)) self.assertEqual(num_snippets * (self.nc - 1), len(df)) - - -class TestNameDeprecationDate(unittest.TestCase): - def test_neurodsp_import(self): - # Check that the old import still works and gives the same package. - # (ibldsp.voltage is imported at the top of this file.) - with self.assertWarnsRegex(FutureWarning, "01-Oct-2024"): - import neurodsp - self.assertEqual(neurodsp.voltage, voltage) - - def test_deprecation_countdown(self): - # Fail on 01-Sep-2024, when `neurodsp` will be retired. - # When this test fails, remove the entire dummy - # `neurodsp` package at the top level of the ibl-neuropixel - # repository - import datetime - - if datetime.datetime.now() > datetime.datetime(2024, 10, 1): - raise NotImplementedError( - "neurodsp will not longer be supported. " - "Change all references to ibldsp." - )