From 9f0f8213009d6a189b18a67c5045f02d586943b8 Mon Sep 17 00:00:00 2001 From: andreashorn Date: Thu, 9 Jan 2020 15:31:56 +0100 Subject: [PATCH] Updated defaultnucleus entry for manual refinements. --- ea_checkstructures.m | 30 +++++++++++------- .../MNI_ICBM_2009b_NLIN_ASYM/ea_space_def.mat | Bin 856 -> 922 bytes 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/ea_checkstructures.m b/ea_checkstructures.m index b5f7e76ee..c83ee6771 100644 --- a/ea_checkstructures.m +++ b/ea_checkstructures.m @@ -137,17 +137,25 @@ function ea_checkstructures_OpeningFcn(hObject, eventdata, handles, varargin) setappdata(handles.checkstructures,'modality',modality); options.prefs=ea_prefs(options.patientname); setappdata(handles.checkstructures,'options',options); - -switch(options.prefs.machine.checkreg.default) - case 'DISTAL Minimal (Ewert 2017)@STN' - ea_preset_stn(handles) - case 'DISTAL Minimal (Ewert 2017)@GPi' - ea_preset_gpi(handles) - otherwise - parts=ea_strsplit(options.prefs.machine.checkreg.default,'@'); - h.Parent.Label=parts{1}; - h.Label=parts{2}; - ea_setnewatlas(h,[],options,handles); +try + switch(options.prefs.machine.checkreg.default) + case 'DISTAL Minimal (Ewert 2017)@STN' + ea_preset_stn(handles) + case 'DISTAL Minimal (Ewert 2017)@GPi' + ea_preset_gpi(handles) + otherwise + parts=ea_strsplit(options.prefs.machine.checkreg.default,'@'); + h.Parent.Label=parts{1}; + h.Label=parts{2}; + ea_setnewatlas(h,[],options,handles); + end +catch % default (e.g. when changing to a different space + sd=load([ea_space,'ea_space_def.mat']); + defaultnucleus=sd.spacedef.defaultnucleus; + parts=ea_strsplit(defaultnucleus,'@'); + h.Parent.Label=parts{1}; + h.Label=parts{2}; + ea_setnewatlas(h,[],options,handles); end % UIWAIT makes ea_checkstructures wait for user response (see UIRESUME) diff --git a/templates/space/MNI_ICBM_2009b_NLIN_ASYM/ea_space_def.mat b/templates/space/MNI_ICBM_2009b_NLIN_ASYM/ea_space_def.mat index 3095006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