ibl-neuropixel 1.9.2__py3-none-any.whl → 1.9.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ibl_neuropixel-1.9.2.dist-info → ibl_neuropixel-1.9.3.dist-info}/METADATA +1 -1
- {ibl_neuropixel-1.9.2.dist-info → ibl_neuropixel-1.9.3.dist-info}/RECORD +8 -7
- ibldsp/cadzow.py +0 -3
- tests/unit/test_cadzow.py +24 -0
- tests/unit/test_voltage.py +0 -10
- {ibl_neuropixel-1.9.2.dist-info → ibl_neuropixel-1.9.3.dist-info}/WHEEL +0 -0
- {ibl_neuropixel-1.9.2.dist-info → ibl_neuropixel-1.9.3.dist-info}/licenses/LICENSE +0 -0
- {ibl_neuropixel-1.9.2.dist-info → ibl_neuropixel-1.9.3.dist-info}/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
neuropixel.py,sha256=P7sIBAtGIqKReK7OqMBqdwPaTeHjhHMyfyBRL_AvuQY,37987
|
|
2
2
|
spikeglx.py,sha256=4TPXnFGhJahClxr4fA9HwTeiiHBQS9ZEfkWl6t20q2s,41068
|
|
3
|
-
ibl_neuropixel-1.9.
|
|
3
|
+
ibl_neuropixel-1.9.3.dist-info/licenses/LICENSE,sha256=JJCjBeS78UPiX7TZpE-FnMjNNpCyrFb4s8VDGG2wD10,1087
|
|
4
4
|
ibldsp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
ibldsp/cadzow.py,sha256=
|
|
5
|
+
ibldsp/cadzow.py,sha256=pAtxDxBwoNhoxFNc2R5WLwUrmKsq4rQuaglRNgW2Lj8,7251
|
|
6
6
|
ibldsp/cuda_tools.py,sha256=6LpVhYOCuOXEEg8kJ3aOCE4hzA1Yq1dojsbbBQmQCF4,2387
|
|
7
7
|
ibldsp/destripe_gpu.py,sha256=I5jzFocpsYw36kMMd533YThbrQaZix5e1sHqsUjHvO4,2824
|
|
8
8
|
ibldsp/filter_gpu.py,sha256=DPrPBLRXeCh_6BcJWJnPFaxS9Q6kX4nPENZg-c2q5rc,5789
|
|
@@ -22,14 +22,15 @@ tests/integration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
|
22
22
|
tests/integration/csd_experiments.py,sha256=bddMl2SCzeEM_QnBrZGypUYMKxFVDc6qderyUyX-iew,3158
|
|
23
23
|
tests/integration/test_destripe.py,sha256=ZV7gasuFib2AbVb63WczgQvc13PbIX9t4pQgamBMgRY,6161
|
|
24
24
|
tests/unit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
|
+
tests/unit/test_cadzow.py,sha256=Ky16lMe0guSQznlA1w76wSqQJ52P7LeYl7catAIb3Pg,681
|
|
25
26
|
tests/unit/test_ephys_np2.py,sha256=1wsgS_C5W8tUO_qDyORBRUKGsrB0Gq3wMLAjJcjrNZ4,15599
|
|
26
27
|
tests/unit/test_neuropixel.py,sha256=ZFKrvTYaYgK5WgOfoHa5x9BNUpRomACPiIm6Kr-A3gw,2511
|
|
27
28
|
tests/unit/test_plots.py,sha256=PhCxrEN1Zd1jTgmiwd16_dEghcI7kwmHT3AQmAPpzkA,850
|
|
28
29
|
tests/unit/test_spikeglx.py,sha256=9PrSOPGrYAAQEeJPAOmqc3Rhgia6ftv-zihVWXglhqw,34388
|
|
29
30
|
tests/unit/test_utils.py,sha256=37XQDUqcABYrrsdX17kX54H4e5jld7GOn1ISxtgoa5U,21859
|
|
30
|
-
tests/unit/test_voltage.py,sha256=
|
|
31
|
+
tests/unit/test_voltage.py,sha256=miLjw7gAAvOj-o0Jxn7xZpyXcA499WTyY8DjB1xapyg,5917
|
|
31
32
|
tests/unit/test_waveforms.py,sha256=VnFvUi1pteROwwbC5Ebp2lqSxF3a8a7eXHpD8OUeuTg,16237
|
|
32
|
-
ibl_neuropixel-1.9.
|
|
33
|
-
ibl_neuropixel-1.9.
|
|
34
|
-
ibl_neuropixel-1.9.
|
|
35
|
-
ibl_neuropixel-1.9.
|
|
33
|
+
ibl_neuropixel-1.9.3.dist-info/METADATA,sha256=UzCU-I7_KkyqA2QLFYDo3euwvGrhl3nzopr-CRPUEsI,3746
|
|
34
|
+
ibl_neuropixel-1.9.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
35
|
+
ibl_neuropixel-1.9.3.dist-info/top_level.txt,sha256=WtVcEUptnwU6BT72cgGmrWYFGM9d9qCEqe3LwR9FIw4,48
|
|
36
|
+
ibl_neuropixel-1.9.3.dist-info/RECORD,,
|
ibldsp/cadzow.py
CHANGED
|
@@ -17,8 +17,6 @@ for N-spatial dimensions.
|
|
|
17
17
|
}
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
-
from functools import lru_cache
|
|
21
|
-
|
|
22
20
|
import numpy as np
|
|
23
21
|
import scipy.fft
|
|
24
22
|
from iblutil.numerical import ismember2d
|
|
@@ -48,7 +46,6 @@ def traj_matrix_indices(n):
|
|
|
48
46
|
return itraj
|
|
49
47
|
|
|
50
48
|
|
|
51
|
-
@lru_cache(maxsize=24)
|
|
52
49
|
def trajectory(x, y, dtype=np.complex128):
|
|
53
50
|
"""
|
|
54
51
|
Computes the 2 spatial dimensions block-Toeplitz indices from x and y trace coordinates.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import unittest
|
|
2
|
+
|
|
3
|
+
import numpy as np
|
|
4
|
+
|
|
5
|
+
import ibldsp.cadzow
|
|
6
|
+
import neuropixel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class TestCadzow(unittest.TestCase):
|
|
10
|
+
def test_trajectory_matrixes_indices(self):
|
|
11
|
+
assert np.all(
|
|
12
|
+
ibldsp.cadzow.traj_matrix_indices(4) == np.array([[1, 0], [2, 1], [3, 2]])
|
|
13
|
+
)
|
|
14
|
+
assert np.all(
|
|
15
|
+
ibldsp.cadzow.traj_matrix_indices(3) == np.array([[1, 0], [2, 1]])
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
def test_trajectory(self):
|
|
19
|
+
th = neuropixel.trace_header(version=1)
|
|
20
|
+
tm, it, ic, trcount = ibldsp.cadzow.trajectory(
|
|
21
|
+
th["x"][:8], th["y"][:8], dtype=np.int32
|
|
22
|
+
)
|
|
23
|
+
# make sure tm can be indexed
|
|
24
|
+
np.testing.assert_array_equal(tm[it], 0)
|
tests/unit/test_voltage.py
CHANGED
|
@@ -148,13 +148,3 @@ class TestSaturation(unittest.TestCase):
|
|
|
148
148
|
saturation[45852:45865] = True
|
|
149
149
|
df_sat = ibldsp.voltage.saturation_samples_to_intervals(saturation)
|
|
150
150
|
self.assertEqual(81, np.sum(df_sat["stop_sample"] - df_sat["start_sample"]))
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
class TestCadzow(unittest.TestCase):
|
|
154
|
-
def test_trajectory_matrixes(self):
|
|
155
|
-
assert np.all(
|
|
156
|
-
ibldsp.cadzow.traj_matrix_indices(4) == np.array([[1, 0], [2, 1], [3, 2]])
|
|
157
|
-
)
|
|
158
|
-
assert np.all(
|
|
159
|
-
ibldsp.cadzow.traj_matrix_indices(3) == np.array([[1, 0], [2, 1]])
|
|
160
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|