File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 2525
2626 mincstats my_funny.mnc
2727"""
28+ import sys
29+ import os
2830import numpy as np
2931
3032from .keywordonly import kw_only_meth
3133from .optpkg import optional_package
32- h5py , have_h5py , setup_module = optional_package ('h5py' )
34+
35+ # PY35: A bug affected Windows installations of h5py in Python3 versions <3.6
36+ # due to random dictionary ordering, causing float64 data arrays to sometimes be
37+ # loaded as longdouble (also 64 bit on Windows). This caused stochastic failures
38+ # to correctly handle data caches, and possibly other subtle bugs we never
39+ # caught. This was fixed in h5py 2.10.
40+ # Please see https://github.com/nipy/nibabel/issues/665 for details.
41+ min_h5py = '2.10' if os .name == 'nt' and (3 ,) <= sys .version_info < (3 , 6 ) else None
42+ h5py , have_h5py , setup_module = optional_package ('h5py' , min_version = min_h5py )
3343
3444from .minc1 import Minc1File , MincHeader , Minc1Image , MincError
3545
You can’t perform that action at this time.
0 commit comments