bachlab / PsPM

A matlab suite for Psycho-Physiological Modelling
GNU General Public License v3.0
45 stars 11 forks source link

Fix issue 514 #515

Closed teddychao closed 1 year ago

teddychao commented 1 year ago

Fixes #514.

Introduction

The issue appears as PsPM cannot be started when it is called offline. The reason of this issue is, at line 63 and 66 the script is terminated if it is offline, which will not assign values to the expected values sts and version_of_pspm.

Method

Under the offline situation, the variables sts and version_of_pspm should be still assigned in pspm_version, before the script pspm_version is terminated.

Results

At line 63 and 66, the return behaviour is removed, because the return values should be assigned at line 73--79. The new_v is not assigned because version checking cannot be performed. PsPM can be started when offline with the new code, after testing.

image