@@ -107,7 +107,7 @@ def from_fsl(cls, xfm, func_nii, anat_nii):
107107 if isinstance (xfm , str ):
108108 with open (xfm , 'r' ) as fid :
109109 L = fid .readlines ()
110- xfm = np .array ([[np .float_ (s ) for s in ll .split () if s ] for ll in L ])
110+ xfm = np .array ([[np .float64 (s ) for s in ll .split () if s ] for ll in L ])
111111
112112 # Internally, pycortex computes the OPPOSITE transform: from anatomical volume to functional volume.
113113 # Thus, assign anat to "infile" (starting point for transform)
@@ -246,7 +246,7 @@ def from_freesurfer(cls, fs_register, func_nii, subject, freesurfer_subject_dir=
246246 if isinstance (fs_register , str ):
247247 with open (fs_register , 'r' ) as fid :
248248 L = fid .readlines ()
249- anat2func = np .array ([[np .float_ (s ) for s in ll .split () if s ] for ll in L [4 :8 ]])
249+ anat2func = np .array ([[np .float64 (s ) for s in ll .split () if s ] for ll in L [4 :8 ]])
250250 else :
251251 anat2func = fs_register
252252
@@ -261,7 +261,7 @@ def from_freesurfer(cls, fs_register, func_nii, subject, freesurfer_subject_dir=
261261 try :
262262 cmd = ('mri_info' , '--vox2ras' , anat_mgz )
263263 L = decode (subprocess .check_output (cmd )).splitlines ()
264- anat_vox2ras = np .array ([[np .float_ (s ) for s in ll .split () if s ] for ll in L ])
264+ anat_vox2ras = np .array ([[np .float64 (s ) for s in ll .split () if s ] for ll in L ])
265265 except OSError :
266266 print ("Error occurred while executing:\n {}" .format (' ' .join (cmd )))
267267 raise
@@ -379,7 +379,7 @@ def _vox2ras_tkr(image):
379379 # unpredictable.
380380 L = L [- 4 :]
381381 tkrvox2ras = np .array (
382- [[np .float_ (s ) for s in ll .split () if s ] for ll in L ])
382+ [[np .float64 (s ) for s in ll .split () if s ] for ll in L ])
383383 except OSError as e :
384384 print ("Error occurred while executing:\n {}" .format (' ' .join (cmd )))
385385 raise e
0 commit comments