Back to the main page.

Bug 3095 - ft_convert_coordsys fails without spm on the path

Status CLOSED FIXED
Reported 2016-03-15 04:27:00 +0100
Modified 2016-08-02 07:48:37 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P5 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Arjen Stolk - 2016-03-15 04:27:13 +0100

>> mri2 = ft_convert_coordsys(mri, 'tal'); Converting the coordinate system from ctf to tal Undefined function or variable 'spm'. Error in align_ctf2spm (line 121) switch spm('ver') Error in ft_convert_coordsys (line 97) obj = align_ctf2spm(obj, opt); >> ft_hastoolbox('spm8',1) Warning: adding /Users/arjsto/Documents/MATLAB/fieldtrip/external/spm8 toolbox to your MATLAB path ans = 1 >> mri2 = ft_convert_coordsys(mri, 'tal'); Converting the coordinate system from ctf to tal Rescaling NIFTI: slope = 0.00342945, intercept = 0 Smoothing by 0 & 8mm.. Coarse Affine Registration.. Fine Affine Registration..


Jan-Mathijs Schoffelen - 2016-03-15 07:16:08 +0100

feel free to fix this. Sounds like a good test for you to get started on creating your own branch in git, etc.


Arjen Stolk - 2016-03-15 07:20:59 +0100

"dat laat ik me geen twee keer vertellen" ..will do when git and I are friends


Jan-Mathijs Schoffelen - 2016-06-13 09:10:28 +0200

addressed by pull request 177. When do you think that you and git become friends?


Arjen Stolk - 2016-06-13 16:58:01 +0200

Soon.. Been trying to make friends with the NIH in the meantime.


Arjen Stolk - 2016-08-02 07:48:37 +0200

I noticed this wasn't entirely fixed and moved the line "ft_hastoolbox.." to above the if opt==1 statement. https://github.com/fieldtrip/fieldtrip/pull/202