[BUG]:
tylercheung opened this issue · comments
tylercheung commented
Describe the bug
Normalization step fails on 3.0 Matlab release with following error
To Reproduce
Steps to reproduce the behavior:
- imported single folder into 3.0
- coregistered anat_t2 and postop_ct successful
- uncheck coregister, check normalization box, step fails w error below
Including FA information for white-matter normalization (weight = 0.5).
Unrecognized function or variable 'bprfx'.
Error in ea_normalize_ants (line 44)
ea_coregimages(options,[bprfx,options.prefs.fa],[anatpresent{1}],[bprfx,options.prefs.fa2anat],{},0,[],1);
Error in ea_normalize (line 20)
ea_normalize_ants(options);
Error in ea_autocoord (line 203)
ea_normalize(options);
Error in ea_run (line 103)
ea_autocoord(options);
Error in lead_dbs/run_button_Callback (line 1293)
ea_run('run', options);
Error in appdesigner.internal.service.AppManagementService/executeCallback (line 138)
callback(appOrUserComponent, event);
Error in matlab.apps.AppBase>@(source,event)executeCallback(appdesigner.internal.service.AppManagementService.instance(),app,callback,requiresEventData,event) (line 63)
newCallback = @(source, event)executeCallback(appdesigner.internal.service.AppManagementService.instance(), ...
Error in matlab.ui.internal.controller.uicontrol.UicontrolRedirectStrategy/executeCallback (line 231)
feval(callback{1}, src, event, callback{2:end});
Error in matlab.ui.internal.controller.uicontrol.PushButtonRedirectStrategy/handleCallbackFired (line 13)
executeCallback(obj, src, event);
Error in matlab.ui.internal.controller.uicontrol.PushButtonRedirectStrategy>@(varargin)obj.handleCallbackFired(varargin{:}) (line 19)
component.ButtonPushedFcn = @obj.handleCallbackFired;
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback
Error while evaluating Button PrivateButtonPushedFcn.
>>
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
- OS: [e.g. Linux, masOS or Windows and OS version]
- MATLAB version: [e.g. R2021a]
- Lead-DBS version: [e.g. v3.0]
- Lead-DBS setup: [e.g. downloaded from website or cloned github repository (and which branch)]
Additional context
Add any other context about the problem here.
tylercheung commented
OK, this is fixed after I reset the preferences...
Ningfei Li commented
great. I would also suggest to uncheck Include FA
in the normalization setting. I think it's the default preference now.