Skip to content

Commit 53ee159

Browse files
committed
Merge remote-tracking branch 'origin/master' into chore_githubactions
2 parents fc1fdb0 + 9ced4fc commit 53ee159

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def find_version(*file_paths):
5353
"Programming Language :: Python :: 3.5",
5454
"Programming Language :: Python :: 3.6",
5555
"Programming Language :: Python :: 3.7",
56+
"Programming Language :: Python :: 3.8",
57+
"Programming Language :: Python :: 3.9",
5658
"Topic :: Scientific/Engineering :: Visualization",
5759
],
5860
keywords="neuroimaging",

src/neuroglancer_scripts/downscaling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def downscale(self, chunk, downscaling_factors):
161161
raise NotImplementedError
162162
dtype = chunk.dtype
163163
# Use a floating-point type for arithmetic
164-
work_dtype = np.promote_types(chunk.dtype, np.floating)
164+
work_dtype = np.promote_types(chunk.dtype, np.float64)
165165
chunk = chunk.astype(work_dtype, casting="safe")
166166

167167
half = work_dtype.type(0.5)

tox.ini

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,22 @@
33
# test suite on all supported python versions. To use it, "pip install tox"
44
# and then run "tox" from this directory.
55

6+
# NOTE: remember to update the classifiers in setup.py when Python versions are
7+
# added/removed
8+
#
9+
# FIXME: Tests do not work on Python 3.10 yet as of 2021-10-15 beause the NumPy
10+
# wheels are not available from PyPI. py310 should be added when they become
11+
# available.
612
[tox]
7-
envlist = py35, py36, py37, py38, codestyle, docs
13+
envlist = py35, py36, py37, py38, py39, codestyle, docs
814

915
[gh-actions]
1016
python =
1117
3.5: py35
1218
3.6: py36
1319
3.7: py37
14-
3.8: py38
20+
3.8: py38, codestyle
21+
3.9: py39
1522

1623
[testenv]
1724
commands = pytest {posargs}

0 commit comments

Comments
 (0)