Print

Print


Der Guillaume,

Thanks for the helpful advice!

Martin

On Feb 9, 2017 19:56, "Guillaume Flandin" <[log in to unmask]> wrote:

> Dear Martin,
>
> Thanks - I see what you mean, I've been annoyed by this a number of
> times too. On the other hand, it might have saved a few SPM users from
> overwriting their results by accident.
>
> At the moment, this behaviour cannot be modified through the defaults
> and you have to manually edit spm_spm.m and comment out lines 352-371.
> An alternative would be to delete any existing file called mask.nii
> before running GLM specification/estimation as this is the way SPM
> detects the presence of analysis results (and this can be done as a
> batch module BasicIO > File Operations > Delete Files).
>
> Best regards,
> Guillaume.
>
>
> On 08/02/17 19:39, Martin Hochheimer wrote:
> > Dear Guillaume,
> >
> > Basically, I am trying to switch off an option for the "run batch"
> function.
> > By default, it asks confirmation to overwrite an existing SPM mat file
> > before running, say, a 1stlevel GLM spec & est.
> >
> > When I run a batch pipeline that overwrites a bunch of existing SPM
> > mats, I do not want to sit next to it and click "continue" at every new
> > directory.
> >
> > I looked for this default setting in the spm_defaults file, but did not
> > see it.
> >
> > Could you tell me how to switch this off?
> >
> > Thanks a lot!
> >
> > Martin
> >
> > On 8 February 2017 at 17:04, Guillaume Flandin <[log in to unmask]
> > <mailto:[log in to unmask]>> wrote:
> >
> >     Dear Martin,
> >
> >     Yes, it's unfortunately broken and has been for a while now. I'm not
> >     convinced of the usefulness of this option though: what do you use it
> >     for and how? Wouldn't it be enough to create a file spm_my_defaults.m
> >     with your modified options as described in the help of
> spm_defaults.m?
> >
> >     Best regards,
> >     Guillaume.
> >
> >
> >     On 08/02/17 10:54, Martin Hochheimer wrote:
> >     > Dear SPM experts,
> >     >
> >     > I have tried several times to change the defaults in the SPM batch
> >     editor's section "edit defaults".
> >     >
> >     > Every time I try to do this, I get the following error:
> >     >
> >     > As soon as I select the option:
> >     >
> >     >
> >     > Cell contents reference from a non-cell array object.
> >     >
> >     > Error in cfg_ui_util (line 119)
> >     >         [id, stop, contents] = ...
> >     >
> >     > Error in cfg_ui>local_showmod (line 329)
> >     >     [id, namestr, datastr, contents] = cfg_ui_util('showmod',
> >     cmid, dflag);
> >     >
> >     > Error in cfg_ui>local_editdefs (line 248)
> >     > local_showmod(gcbo);
> >     >
> >     > Error while evaluating uimenu Callback
> >     >
> >     >
> >     > and as soon as I try to access any option within the batch
> >     defaults window:
> >     >
> >     >
> >     > Cell contents reference from a non-cell array object.
> >     >
> >     > Error in cfg_ui_util (line 119)
> >     >         [id, stop, contents] = ...
> >     >
> >     > Error in cfg_ui>local_showmod (line 329)
> >     >     [id, namestr, datastr, contents] = cfg_ui_util('showmod',
> >     cmid, dflag);
> >     >
> >     > Error in cfg_ui>modlist_Callback (line 898)
> >     >         local_showmod(hObject);
> >     >
> >     > Error in gui_mainfcn (line 96)
> >     >         feval(varargin{:});
> >     >
> >     > Error in cfg_ui (line 53)
> >     >     gui_mainfcn(gui_State, varargin{:});
> >     >
> >     > Error in
> >     >
> >     @(hObject,eventdata)cfg_ui('modlist_Callback',hObject,
> eventdata,guidata(hObject))
> >     >
> >     >
> >     > Error while evaluating uicontrol Callback
> >     >
> >     >
> >     >
> >     > Could anybody please tell me how to mend this?
> >     >
> >     > Thank you and all the best!
> >     >
> >     > Martin Hochheimer
> >     >
> >
> >     --
> >     Guillaume Flandin, PhD
> >     Wellcome Trust Centre for Neuroimaging
> >     University College London
> >     12 Queen Square
> >     London WC1N 3BG
> >
> >
>
> --
> Guillaume Flandin, PhD
> Wellcome Trust Centre for Neuroimaging
> University College London
> 12 Queen Square
> London WC1N 3BG
>