ibl-neuropixel 1.9.2__tar.gz → 1.9.3__tar.gz

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.
Files changed (70) hide show
  1. {ibl_neuropixel-1.9.2/src/ibl_neuropixel.egg-info → ibl_neuropixel-1.9.3}/PKG-INFO +1 -1
  2. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/setup.py +1 -1
  3. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3/src/ibl_neuropixel.egg-info}/PKG-INFO +1 -1
  4. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibl_neuropixel.egg-info/SOURCES.txt +1 -0
  5. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibldsp/cadzow.py +0 -3
  6. ibl_neuropixel-1.9.3/src/tests/unit/test_cadzow.py +24 -0
  7. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/unit/test_voltage.py +0 -10
  8. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/LICENSE +0 -0
  9. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/MANIFEST.in +0 -0
  10. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/README.md +0 -0
  11. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/setup.cfg +0 -0
  12. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibl_neuropixel.egg-info/dependency_links.txt +0 -0
  13. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibl_neuropixel.egg-info/requires.txt +0 -0
  14. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibl_neuropixel.egg-info/top_level.txt +0 -0
  15. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibldsp/__init__.py +0 -0
  16. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibldsp/cuda_tools.py +0 -0
  17. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibldsp/destripe_gpu.py +0 -0
  18. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibldsp/filter_gpu.py +0 -0
  19. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibldsp/fourier.py +0 -0
  20. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibldsp/icsd.py +0 -0
  21. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibldsp/plots.py +0 -0
  22. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibldsp/raw_metrics.py +0 -0
  23. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibldsp/smooth.py +0 -0
  24. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibldsp/spiketrains.py +0 -0
  25. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibldsp/utils.py +0 -0
  26. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibldsp/voltage.py +0 -0
  27. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibldsp/waveform_extraction.py +0 -0
  28. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/ibldsp/waveforms.py +0 -0
  29. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/neuropixel.py +0 -0
  30. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/neurowaveforms/__init__.py +0 -0
  31. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/neurowaveforms/model.py +0 -0
  32. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/spikeglx.py +0 -0
  33. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/np2split/NP1_meta/_spikeglx_ephysData_g0_t0.imec0.ap.meta +0 -0
  34. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/np2split/NP21_meta/_spikeglx_ephysData_g0_t0.imec0.ap.meta +0 -0
  35. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/np2split/NP24_meta/_spikeglx_ephysData_g0_t0.imec0.ap.meta +0 -0
  36. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/np2split/_spikeglx_ephysData_g0_t0.imec0.ap.ch +0 -0
  37. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/np2split/_spikeglx_ephysData_g0_t0.imec0.ap.meta +0 -0
  38. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sample3A_376_channels.ap.meta +0 -0
  39. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sample3A_g0_t0.imec.ap.meta +0 -0
  40. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sample3A_g0_t0.imec.lf.meta +0 -0
  41. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sample3A_g0_t0.imec.wiring.json +0 -0
  42. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sample3A_short_g0_t0.imec.ap.meta +0 -0
  43. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sample3B2_exported.imec0.ap.meta +0 -0
  44. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sample3B_catgt.ap.meta +0 -0
  45. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sample3B_g0_t0.imec1.ap.meta +0 -0
  46. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sample3B_g0_t0.imec1.lf.meta +0 -0
  47. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sample3B_g0_t0.nidq.meta +0 -0
  48. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sample3B_g0_t0.nidq.wiring.json +0 -0
  49. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sample3B_version202304.ap.meta +0 -0
  50. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sampleNP2.1_g0_t0.imec.ap.meta +0 -0
  51. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sampleNP2.1_prototype.ap.meta +0 -0
  52. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sampleNP2.4_1shank_g0_t0.imec.ap.meta +0 -0
  53. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sampleNP2.4_4shanks_appVersion20230905.ap.meta +0 -0
  54. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sampleNP2.4_4shanks_g0_t0.imec.ap.meta +0 -0
  55. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sampleNP2.4_4shanks_while_acquiring_incomplete.ap.meta +0 -0
  56. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/sampleNPultra_g0_t0.imec0.ap.meta +0 -0
  57. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/waveform_sample/test_arr_in.npy +0 -0
  58. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/waveform_sample/test_arr_peak.npy +0 -0
  59. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/waveform_sample/test_df.csv +0 -0
  60. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/fixtures/waveform_sample/test_df_wavinfo.csv +0 -0
  61. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/integration/__init__.py +0 -0
  62. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/integration/csd_experiments.py +0 -0
  63. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/integration/test_destripe.py +0 -0
  64. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/unit/__init__.py +0 -0
  65. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/unit/test_ephys_np2.py +0 -0
  66. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/unit/test_neuropixel.py +0 -0
  67. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/unit/test_plots.py +0 -0
  68. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/unit/test_spikeglx.py +0 -0
  69. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/unit/test_utils.py +0 -0
  70. {ibl_neuropixel-1.9.2 → ibl_neuropixel-1.9.3}/src/tests/unit/test_waveforms.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ibl-neuropixel
3
- Version: 1.9.2
3
+ Version: 1.9.3
4
4
  Summary: Collection of tools for Neuropixel 1.0 and 2.0 probes data
5
5
  Home-page: https://github.com/int-brain-lab/ibl-neuropixel
6
6
  Author: The International Brain Laboratory
@@ -8,7 +8,7 @@ with open("requirements.txt") as f:
8
8
 
9
9
  setuptools.setup(
10
10
  name="ibl-neuropixel",
11
- version="1.9.2",
11
+ version="1.9.3",
12
12
  author="The International Brain Laboratory",
13
13
  description="Collection of tools for Neuropixel 1.0 and 2.0 probes data",
14
14
  long_description=long_description,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ibl-neuropixel
3
- Version: 1.9.2
3
+ Version: 1.9.3
4
4
  Summary: Collection of tools for Neuropixel 1.0 and 2.0 probes data
5
5
  Home-page: https://github.com/int-brain-lab/ibl-neuropixel
6
6
  Author: The International Brain Laboratory
@@ -58,6 +58,7 @@ src/tests/integration/__init__.py
58
58
  src/tests/integration/csd_experiments.py
59
59
  src/tests/integration/test_destripe.py
60
60
  src/tests/unit/__init__.py
61
+ src/tests/unit/test_cadzow.py
61
62
  src/tests/unit/test_ephys_np2.py
62
63
  src/tests/unit/test_neuropixel.py
63
64
  src/tests/unit/test_plots.py
@@ -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)
@@ -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