Skip to content

Commit f60bc17

Browse files
authored
bump version and fix ci (#61)
* bump version * Also fix test * test for new py versions on ci * lets drop 37 too
1 parent afa112a commit f60bc17

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2.0
33
jobs:
44
deploy_to_playground:
55
docker:
6-
- image: circleci/python:3.6-stretch
6+
- image: circleci/python:3.12-stretch
77
steps:
88
- checkout
99
- run:

.github/workflows/ci.yml

+14-10
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,30 @@ jobs:
1313
name: ${{ matrix.name }}
1414
runs-on: ${{ matrix.os }}
1515
strategy:
16+
fail-fast: false
1617
matrix:
1718
include:
18-
- name: Linux py36
19-
os: ubuntu-16.04
20-
pyversion: '3.6'
21-
- name: Linux py37
22-
os: ubuntu-latest
23-
pyversion: '3.7'
2419
- name: Linux py38
2520
os: ubuntu-latest
2621
pyversion: '3.8'
2722
- name: Linux py39
2823
os: ubuntu-latest
2924
pyversion: '3.9'
30-
- name: MacOS py38
25+
- name: Linux py310
26+
os: ubuntu-latest
27+
pyversion: '3.10'
28+
- name: Linux py311
29+
os: ubuntu-latest
30+
pyversion: '3.11'
31+
- name: Linux py312
32+
os: ubuntu-latest
33+
pyversion: '3.12'
34+
- name: MacOS py312
3135
os: macos-latest
32-
pyversion: '3.8'
33-
- name: Windows py38
36+
pyversion: '3.12'
37+
- name: Windows py312
3438
os: windows-latest
35-
pyversion: '3.8'
39+
pyversion: '3.12'
3640

3741
steps:
3842
- uses: actions/checkout@v2

dash_slicer/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
from .slicer import VolumeSlicer # noqa: F401
66

77

8-
__version__ = "0.3.0"
8+
__version__ = "0.3.1"
99
version_info = tuple(map(int, __version__.split(".")))

dash_slicer/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def mask_to_coloured_slices(mask, axis, color=None):
8181
# Check the mask
8282
if not isinstance(mask, np.ndarray):
8383
raise TypeError("Mask must be an ndarray or None.")
84-
elif mask.dtype not in (np.bool, np.uint8):
84+
elif mask.dtype not in (bool, np.uint8):
8585
raise ValueError(f"Mask must have bool or uint8 dtype, not {mask.dtype}.")
8686

8787
mask = mask.astype(np.uint8, copy=False) # need int to index

0 commit comments

Comments
 (0)