Skip to content

Commit

Permalink
bump version and fix ci (#61)
Browse files Browse the repository at this point in the history
* bump version

* Also fix test

* test for new py versions on ci

* lets drop 37 too
  • Loading branch information
almarklein authored Mar 29, 2024
1 parent afa112a commit f60bc17
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.0
jobs:
deploy_to_playground:
docker:
- image: circleci/python:3.6-stretch
- image: circleci/python:3.12-stretch
steps:
- checkout
- run:
Expand Down
24 changes: 14 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,30 @@ jobs:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Linux py36
os: ubuntu-16.04
pyversion: '3.6'
- name: Linux py37
os: ubuntu-latest
pyversion: '3.7'
- name: Linux py38
os: ubuntu-latest
pyversion: '3.8'
- name: Linux py39
os: ubuntu-latest
pyversion: '3.9'
- name: MacOS py38
- name: Linux py310
os: ubuntu-latest
pyversion: '3.10'
- name: Linux py311
os: ubuntu-latest
pyversion: '3.11'
- name: Linux py312
os: ubuntu-latest
pyversion: '3.12'
- name: MacOS py312
os: macos-latest
pyversion: '3.8'
- name: Windows py38
pyversion: '3.12'
- name: Windows py312
os: windows-latest
pyversion: '3.8'
pyversion: '3.12'

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion dash_slicer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
from .slicer import VolumeSlicer # noqa: F401


__version__ = "0.3.0"
__version__ = "0.3.1"
version_info = tuple(map(int, __version__.split(".")))
2 changes: 1 addition & 1 deletion dash_slicer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def mask_to_coloured_slices(mask, axis, color=None):
# Check the mask
if not isinstance(mask, np.ndarray):
raise TypeError("Mask must be an ndarray or None.")
elif mask.dtype not in (np.bool, np.uint8):
elif mask.dtype not in (bool, np.uint8):
raise ValueError(f"Mask must have bool or uint8 dtype, not {mask.dtype}.")

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

0 comments on commit f60bc17

Please sign in to comment.