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 25
25
26
26
mincstats my_funny.mnc
27
27
"""
28
+ import sys
29
+ import os
28
30
import numpy as np
29
31
30
32
from .keywordonly import kw_only_meth
31
33
from .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 )
33
43
34
44
from .minc1 import Minc1File , MincHeader , Minc1Image , MincError
35
45
You can’t perform that action at this time.
0 commit comments