Skip to content

Commit 988415f

Browse files
committed
fix: add unsigned_to_signed to preprocessing to adapt to new version of SI 0.103+
1 parent 82324ef commit 988415f

2 files changed

Lines changed: 121 additions & 0 deletions

File tree

element_array_ephys/spike_sorting/si_preprocessing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def IBLdestriping_modified(recording):
3939

4040
def organoid_preprocessing(recording):
4141
"""Preprocessing pipeline for organoid data."""
42+
recording = si.preprocessing.unsigned_to_signed(recording)
4243
recording = si.preprocessing.bandpass_filter(
4344
recording=recording, freq_min=300, freq_max=6000
4445
)

pyproject.toml

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "element-array-ephys"
7+
dynamic = ["version"]
8+
description = "Extracellular Array Electrophysiology DataJoint Element"
9+
readme = "README.md"
10+
license = {text = "MIT"}
11+
authors = [
12+
{name = "DataJoint", email = "info@datajoint.com"}
13+
]
14+
maintainers = [
15+
{name = "DataJoint", email = "info@datajoint.com"}
16+
]
17+
keywords = ["neuroscience", "electrophysiology", "science", "datajoint"]
18+
classifiers = [
19+
"Development Status :: 4 - Beta",
20+
"Intended Audience :: Science/Research",
21+
"License :: OSI Approved :: MIT License",
22+
"Operating System :: OS Independent",
23+
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3.7",
25+
"Programming Language :: Python :: 3.8",
26+
"Programming Language :: Python :: 3.9",
27+
"Programming Language :: Python :: 3.10",
28+
"Topic :: Scientific/Engineering :: Bio-Informatics",
29+
]
30+
requires-python = ">=3.7,<3.11"
31+
dependencies = [
32+
"datajoint>=0.13.0",
33+
"ipykernel>=6.0.1",
34+
"ipywidgets",
35+
"openpyxl",
36+
"plotly",
37+
"seaborn",
38+
"spikeinterface @ git+https://github.com/SpikeInterface/spikeinterface.git",
39+
"spython",
40+
"cuda-python",
41+
"scikit-image",
42+
"nbformat>=4.2.0",
43+
"pyopenephys>=1.1.6",
44+
"element-interface @ git+https://github.com/datajoint/element-interface.git@dev_memoized_results",
45+
"numba",
46+
]
47+
48+
[project.optional-dependencies]
49+
elements = [
50+
"element-animal @ git+https://github.com/datajoint/element-animal.git",
51+
"element-event @ git+https://github.com/datajoint/element-event.git",
52+
"element-lab @ git+https://github.com/datajoint/element-lab.git",
53+
"element-session @ git+https://github.com/datajoint/element-session.git",
54+
]
55+
nwb = [
56+
"dandi",
57+
"neuroconv[ecephys]",
58+
"pynwb",
59+
]
60+
tests = [
61+
"pre-commit",
62+
"pytest",
63+
"pytest-cov",
64+
]
65+
spykingcircus = [
66+
"hdbscan",
67+
]
68+
69+
[project.urls]
70+
Homepage = "https://github.com/datajoint/element-array-ephys"
71+
Repository = "https://github.com/datajoint/element-array-ephys"
72+
Documentation = "https://github.com/datajoint/element-array-ephys"
73+
"Bug Tracker" = "https://github.com/datajoint/element-array-ephys/issues"
74+
75+
[tool.setuptools]
76+
packages = ["element_array_ephys"]
77+
78+
[tool.setuptools.package-data]
79+
"element_array_ephys" = ["export/nwb/requirements.txt"]
80+
81+
[tool.setuptools.dynamic]
82+
version = {attr = "element_array_ephys.version.__version__"}
83+
84+
[tool.pytest.ini_options]
85+
testpaths = ["tests"]
86+
python_files = ["test_*.py", "*_test.py"]
87+
python_classes = ["Test*"]
88+
python_functions = ["test_*"]
89+
addopts = [
90+
"--strict-markers",
91+
"--strict-config",
92+
"--cov=element_array_ephys",
93+
"--cov-report=term-missing",
94+
"--cov-report=html",
95+
"--cov-report=xml",
96+
]
97+
98+
[tool.coverage.run]
99+
source = ["element_array_ephys"]
100+
omit = [
101+
"*/tests/*",
102+
"*/test_*",
103+
"*/__pycache__/*",
104+
"*/migrations/*",
105+
]
106+
107+
[tool.coverage.report]
108+
exclude_lines = [
109+
"pragma: no cover",
110+
"def __repr__",
111+
"if self.debug:",
112+
"if settings.DEBUG",
113+
"raise AssertionError",
114+
"raise NotImplementedError",
115+
"if 0:",
116+
"if __name__ == .__main__.:",
117+
"class .*\\bProtocol\\):",
118+
"@(abc\\.)?abstractmethod",
119+
]
120+

0 commit comments

Comments
 (0)