Skip to content

bump version and fix ci #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading