Skip to content

Commit

Permalink
Merge pull request #1716 from girder/dtype-guard
Browse files Browse the repository at this point in the history
Add another guard on dtype based on a field report
  • Loading branch information
manthey authored Nov 5, 2024
2 parents 25f374b + 4c4dbd9 commit 7d4d213
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sources/multi/large_image_source_multi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ def _openSource(self, source, params=None):
params = source.get('params', {})
ts = openFunc(source['path'], **params)
if (self._dtype and np.dtype(ts.dtype).kind == 'f' and
np.dtype(self._dtype).kind != 'f' and
(self._dtype == 'check' or np.dtype(self._dtype).kind != 'f') and
'sampleScale' not in source and 'sampleOffset' not in source):
minval = maxval = 0
for f in range(ts.frames):
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ setenv =
# installs in editable mode, which then includes results in coverage.
[testenv:test-py{38,39,310,311,312,313}]
# Don't package for tests where we use editable modes
package=skip
package=editable
passenv = {[testenv:test]passenv}
extras = {[testenv:test]extras}
deps =
Expand Down

0 comments on commit 7d4d213

Please sign in to comment.