Commit 6967461
RF: minc - delay import of h5py until needed.
On Debian systems h5py comes with MPI enabled build.
I guess on some misconfigured systems, like my laptop, it might take awhile to import.
And since h5py here is imported upon import of `nibabel`, it makes
it long(er) to import it. Here is timing on my laptop before the change:
$> time python -c 'import nibabel'
python -c 'import nibabel' 0.20s user 0.08s system 5% cpu 5.356 total
and here is after the change:
$> time python -c 'import nibabel'
python -c 'import nibabel' 0.13s user 0.02s system 100% cpu 0.150 total1 parent 50265dc commit 6967461
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
160 | 159 | | |
161 | 160 | | |
162 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| |||
0 commit comments