-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformdata.m
More file actions
49 lines (46 loc) · 1.62 KB
/
formdata.m
File metadata and controls
49 lines (46 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
function formdata(handles,varargin)
global mypath RunArray sl
try
if ~isempty(varargin)
ind = varargin{1};
if isempty(ind)
ind = handles.curses.ind;
if isempty(ind)
return
end
end
executioninfo=[{''} {''} {''} {''} {''} {''} {''}]';
set(handles.table_executioninfo,'Data',executioninfo)
if length(varargin)>1 && ~isempty(varargin{2})
parameters=varargin{2};
else
q=getcurrepos(handles);
load([mypath sl 'data' sl 'myrepos.mat'],'myrepos')
parameters=switchSimRun({},myrepos(q).dir);
end
else
ind = handles.curses.ind;
if isempty(ind)
return
end
executioninfo=[{RunArray(ind).ExecutionDate} {RunArray(ind).ExecutedBy} {num2str(RunArray(ind).RunTime,'%10.2f')} {RunArray(ind).NumCells} {RunArray(ind).NumConnections} {RunArray(ind).NumSpikes} {RunArray(ind).NumCellsRecorded}]';
set(handles.table_executioninfo,'Data',executioninfo)
q=getcurrepos(handles);
load([mypath sl 'data' sl 'myrepos.mat'],'myrepos')
parameters=switchSimRun({myrepos.dir},myrepos(q).dir);
end
idx = find([parameters(:).form]==1); %#ok<NODEF>
myorder = ([parameters(idx).list] - floor([parameters(idx).list]))*100+floor([parameters(idx).list]);
myorder(myorder==0)=max(myorder)+1;
[~, sorti]=sort(myorder);
idx=idx(sorti);
myrows={parameters(idx).nickname};
set(handles.table_siminfo,'RowName',myrows);
siminfo=[];
for r=1:length(idx)
siminfo=[siminfo {RunArray(ind).(parameters(idx(r)).name)}]; %#ok<AGROW>
end
set(handles.table_siminfo,'Data',siminfo')
catch ME
handleME(ME)
end