Skip to content

Commit

Permalink
remove neurodsp after grace period expired
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Oct 5, 2024
1 parent 4241383 commit dedfd2a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
8 changes: 0 additions & 8 deletions src/neurodsp/__init__.py

This file was deleted.

22 changes: 0 additions & 22 deletions src/tests/unit/cpu/test_ibldsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)

0 comments on commit dedfd2a

Please sign in to comment.