Skip to content

Commit

Permalink
prepare release 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Oct 24, 2024
1 parent c5f2159 commit a205097
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9", "3.10"]
python-version: ["3.10", "3.13"]
steps:
- name: Checkout ibl-neuropixel repo
uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Collection of tools to handle Neuropixel 1.0 and 2.0 data
(documentation coming soon...)

## Installation
Minimum Python version supported is 3.10
`pip install ibl-neuropixel`


Expand Down
6 changes: 6 additions & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.5

## 1.5.0 2024-10-24
- Automatic sorting per shank / row / col
- Minimum Python version is 3.10

# 1.4

## 1.4.0 2024-10-05
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="ibl-neuropixel",
version="1.4.0",
version="1.5.0",
author="The International Brain Laboratory",
description="Collection of tools for Neuropixel 1.0 and 2.0 probes data",
long_description=long_description,
Expand All @@ -27,5 +27,5 @@
packages=setuptools.find_packages(where="src", exclude=["tests"]),
include_package_data=True,
py_modules=["spikeglx", "neuropixel"],
python_requires=">=3.8",
python_requires=">=3.10",
)
2 changes: 1 addition & 1 deletion src/spikeglx.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def range_volts(self):
:return: [nc, ] array of float32 (V)
"""
if not self.meta:
return self.sample2volts * np.NaN
return self.sample2volts * np.nan
maxint = _get_max_int_from_meta(self.meta)
return self.sample2volts * maxint

Expand Down
4 changes: 2 additions & 2 deletions src/tests/unit/cpu/test_waveforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def test_dist_chanel_from_peak():
xyz_testd = np.stack(
(
np.array([[0, 0, 0], [0, 1, 0], [1, 0, 0], [1, 1, 0]]),
np.array([[4, 0, 0], [2, 0, 0], [np.NaN, np.NaN, np.NaN], [1, 0, 0]]),
np.array([[4, 0, 0], [2, 0, 0], [np.nan, np.nan, np.nan], [1, 0, 0]]),
),
axis=2,
)
Expand All @@ -132,7 +132,7 @@ def test_dist_chanel_from_peak():
sp_spread = waveforms.spatial_spread_weighted(eu_dist, weights)

np.testing.assert_almost_equal(eu_dist[0, :], np.array([0, 1, 1, np.sqrt(2)]))
np.testing.assert_equal(eu_dist[1, :], np.array([2, 0, np.NaN, 1]))
np.testing.assert_equal(eu_dist[1, :], np.array([2, 0, np.nan, 1]))
np.testing.assert_equal(sp_spread, np.array([1, 0.5]))


Expand Down

0 comments on commit a205097

Please sign in to comment.