Hi Tom,
> I have another problem with 'check' though. Well not problem, but
> design issue. If you want to check an element in the tree, you have to
> put the .check one branch higher instead of on the element itself. I
> find it a bit annoying, because that branch contains other things that
> need to be completed before the check function is called.
> My example:
> Main
> |- Subjects (repeat)
> | |- subject <
> | |- subject <
> |- General settings (files)
>
> I want to check the general settings files leaf, but I have to put the
> '.check' on Main, so it won't be called unless all subject data is
> entered correctly.
Are you sure about this? Sometimes you need to run a 'clear functions'
in order for the updated config files to be used. Maybe this is the
problem.
> So what should I choose for a string (char array, or is it cell)? All
> of them seem to work.
See around line 1150 of spm_jobman.m. The num field is ignored for the
's' option, but is used for all other entered string types.
>> BTW reading your code is fun!
The spm_jobman.m code started out elegantly. It just got a bit messy
after adding extra stuff (hence all the seriously recursive code).
Pointers would have helped a lot when writing it.
Best regards,
-John
|