Skip to content

Commit

Permalink
Update min. versions of NumPy>=1.23, Numba>=0.57, scikit-image>=0.21
Browse files Browse the repository at this point in the history
Signed-off-by: Håkon Wiik Ånes <[email protected]>
  • Loading branch information
hakonanes committed May 30, 2024
1 parent 68a307b commit d0d1679
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
include:
- os: ubuntu-latest
python-version: 3.8
DEPENDENCIES: dask==2021.8.1 diffsims==0.5.1 hyperspy==1.7.3 matplotlib==3.5 numba==0.55 numpy==1.21.6 orix==0.11.1 pooch==1.3.0 pyebsdindex==0.2 scikit-image==0.16.2
DEPENDENCIES: dask==2021.8.1 diffsims==0.5.1 hyperspy==1.7.3 matplotlib==3.5 numba==0.57 numpy==1.23.0 orix==0.11.1 pooch==1.3.0 pyebsdindex==0.2 scikit-image==0.21.0
LABEL: -oldest
- os: ubuntu-latest
python-version: 3.11
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ Changed
-------
- Minimum Python version is now 3.8.
(`#674 <https://github.com/pyxem/kikuchipy/pull/674>`_)
- Minimum NumPy version is now 1.23.0.
(`#674 <https://github.com/pyxem/kikuchipy/pull/674>`_)
- Minimum Numba version is now 0.57.0.
(`#674 <https://github.com/pyxem/kikuchipy/pull/674>`_)
- Minimum scikit-image version is now 0.22.0.
(`#674 <https://github.com/pyxem/kikuchipy/pull/674>`_)

Deprecated
----------
Expand Down
8 changes: 6 additions & 2 deletions kikuchipy/signals/util/tests/test_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,14 @@ def test_rechunk_learning_results(self):
chunks = _rechunk_learning_results(
factors=factors, loadings=loadings, mbytes_chunk=0.02
)
assert chunks == [(-1, -1), (333, -1)]
assert chunks[0] == (-1, -1)
assert chunks[1][0] in [200, 333]
assert chunks[1][1] == -1

# Chunk first axis in both loadings and factors
chunks = _rechunk_learning_results(
factors=factors, loadings=loadings, mbytes_chunk=0.01
)
assert chunks == [(125, -1), (125, -1)]
assert chunks[0] == (125, -1)
assert chunks[1][0] in [125, 62]
assert chunks[1][1] == -1

0 comments on commit d0d1679

Please sign in to comment.