NISOx-BDI / SwE-toolbox

SwE toolbox
GNU General Public License v2.0
16 stars 7 forks source link

Error in Run model and Results display #184

Closed araikes closed 3 years ago

araikes commented 3 years ago

Good morning @BryanGuillaume and @nicholst,

I am attempting to run a longitudinal VBM analysis in SwE 2.2.1 (downloaded it yesterday). I'm running MATLAB 2020a and SPM12 7771.

I've created a model and when I go to run the model (Batch -> SwE -> Run model), I get the error at the bottom.

spm_matlab_version_chk is deprecated in the current version. If I comment out the version check, Run model completes. The same issue happens with Results display as spm_matlab_version_check is present in swe_contrasts.m Likewise, I can comment out the check and it completes.

Just thought you'd like the heads up.

Initialising parameters                 :                        ...done
Output images                           :                 ...initialised
Chunk   1/1                             :                        ...done
Saving SwE.mat                          :                     ...writing15-Dec-2020 10:38:02 - Failed  'Run Model'
Undefined function 'spm_matlab_version_chk' for input arguments of type 'char'.
In file "/groups/adamraikes/matlab_toolboxes/spm12/toolbox/SwE/swe_cp.m" (???), function "swe_cp" at line 1184.
In file "/groups/adamraikes/matlab_toolboxes/spm12/toolbox/SwE/swe_run_rmodel.m" (???), function "swe_run_rmodel" at line 34.

The following modules did not run:
Failed: Run Model
nicholst commented 3 years ago

Thanks!

I am aware of the problem and fixed it with this PR: https://github.com/NISOx-BDI/SwE-toolbox/issues/165

I'll make a new release to incorporate this.

On Tue, Dec 15, 2020 at 5:43 PM araikes notifications@github.com wrote:

Good morning @BryanGuillaume https://github.com/BryanGuillaume and @nicholst https://github.com/nicholst,

I am attempting to run a longitudinal VBM analysis in SwE 2.2.1 (downloaded it yesterday). I'm running MATLAB 2020a and SPM12 7771.

I've created a model and when I go to run the model (Batch -> SwE -> Run model), I get the error at the bottom.

spm_matlab_version_chk is deprecated in the current version. If I comment out the version check, Run model completes. The same issue happens with Results display as spm_matlab_version_check is present in swe_contrasts.m Likewise, I can comment out the check and it completes.

Just thought you'd like the heads up.

Initialising parameters : ...done Output images : ...initialised Chunk 1/1 : ...done Saving SwE.mat : ...writing15-Dec-2020 10:38:02 - Failed 'Run Model' Undefined function 'spm_matlab_version_chk' for input arguments of type 'char'. In file "/groups/adamraikes/matlab_toolboxes/spm12/toolbox/SwE/swe_cp.m" (???), function "swe_cp" at line 1184. In file "/groups/adamraikes/matlab_toolboxes/spm12/toolbox/SwE/swe_run_rmodel.m" (???), function "swe_run_rmodel" at line 34.

The following modules did not run: Failed: Run Model

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NISOx-BDI/SwE-toolbox/issues/184, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHKYQ3TGY2SLZH6GCU7AHDSU6N5NANCNFSM4U4XEJSA .

araikes commented 3 years ago

Hi @nicholst, Despite looking through those closed issues, I didn't see it. Sorry for the redundancy.

Thanks

nicholst commented 3 years ago

Now addressed in v2.2.2.