Skip to content

Commit 7b557d8

Browse files
committed
Fix for selecting expDef from uigetfile
1 parent 88a81a2 commit 7b557d8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

+eui/SignalsExpPanel.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
SignalUpdates = struct('name', cell(500,1), 'value', cell(500,1), 'timestamp', cell(500,1))
1818
% List of updates to exclude (when Exclude == true) or to exclusively
1919
% show (Exclude == false) in the InfoGrid.
20-
UpdatesFilter = {'inputs.wheel', 'pars'}
20+
UpdatesFilter = ["inputs.wheel", "pars"]
2121
% Flag for excluding updates in UpdatesFilter list from InfoGrid. When
2222
% false only those in the list are shown, when false those in the list
2323
% are hidden

+eui/SignalsTest.m

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,12 @@
138138
end
139139
else
140140
% Prompt for experiment definition
141-
[obj.ExpDef, mpath] = uigetfile(...
141+
[expdefname, mpath] = uigetfile(...
142142
'*.m', 'Select the experiment definition function', obj.LastDir);
143-
if obj.ExpDef == 0
144-
return
145-
end
143+
if expdefname == 0, return, end % Return on cancel
146144
obj.LastDir = mpath;
147-
[~, expdefname] = fileparts(obj.ExpDef);
145+
obj.ExpDef = fullfile(mpath, expdefname);
146+
[~, expdefname] = fileparts(obj.ExpDef); % Remove extension
148147
end
149148

150149
obj.buildUI % Build the GUI

0 commit comments

Comments
 (0)