Skip to content

Commit

Permalink
more tests for core
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 committed Oct 17, 2024
1 parent 10605e3 commit 559b739
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/core-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
os: ["ubuntu-latest", "windows-latest"]
# "macos-latest",
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
numpy-version: ['1.22.4', '1.23.5', '1.24.4', '1.25.1', '1.26.4', '2.0.2',]
numpy-version: ['1.22.4', '1.23.5', '1.24.4', '1.25.1', '1.26.4', '2.0.2','2.1']
exclude:
- python-version: '3.9'
numpy-version: '2.1'
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/io-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ jobs:
fail-fast: true
matrix:
python-version: ['3.9', '3.12']
numpy-version: ['1.26.4', '2.0.2']
exclude:
- python-version: '3.12'
numpy-version: '1.26.4'
- python-version: '3.9'
numpy-version: '2.0.2'
numpy-version: ['1.26.4',]
defaults:
# by default run in bash mode (required for conda usage)
run:
Expand Down
3 changes: 3 additions & 0 deletions neo/test/coretest/test_spiketrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ def test__create_from_quantity_array(self):

def test__create_from_quantity_array_with_dtype(self):
times = np.arange(10, dtype="f4") * pq.ms
# this step is required for NumPy 2.0 which now casts to float64 in the case either value/array
# is float64 even if not necessary
# https://numpy.org/devdocs/numpy_2_0_migration_guide.html
times = times.astype(dtype="f4")
t_start = 0.0 * pq.s
t_stop = 12.0 * pq.ms
Expand Down

0 comments on commit 559b739

Please sign in to comment.