bachlab / PsPM

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

`pspm_display` fails in develop branch #744

Closed dominikbach closed 1 month ago

dominikbach commented 1 month ago

Summary

When a file is selected and I click on "done", the following error occurs (and the file selector remains frozen):

No method 'delete' with matching signature found for class 'matlab.ui.control.UIControl'.

Error while evaluating UIControl Callback.

When I close the file selector by clicking on the top-left cross, the following error message occurs: Execution of script varargin as a function is not supported: C:\Program Files\MATLAB\R2021b\toolbox\matlab\lang\varargin.m

Error in pspm_display>load_Callback (line 491)
elseif numel(varargin)>1

Error in gui_mainfcn (line 95)
        feval(varargin{:});

Error in pspm_display (line 48)
  gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)pspm_display('load_Callback',hObject,eventdata,guidata(hObject))

Error while evaluating Menu Callback.

Steps to Reproduce

  1. Call pspm_init and pspm_display.
  2. Select a file.
  3. Click on "done"

Technical Info

dominikbach commented 1 month ago

Same error for pspm_review in develop branch, using models that were computed by the same version.

dominikbach commented 1 month ago

On Mac with Matlab 2023a, the error for pspm_review is

Too many input arguments.

Error while evaluating UIControl Callback.
teddychao commented 1 month ago

I cannot replicate the error that appears after clicking "done" in pspm_display. I can see files are imported. I am unsure if this is an error that has been fixed by recent updates.

image

I can see the error of varargin that appears after clicking the cross button. I have added a PR for this issue.