Skip to content
Snippets Groups Projects
Commit c43d5f95 authored by leprob001's avatar leprob001
Browse files

Bugfix, on applying or withdrawing a soundsource, the offset table did not update.

parent 5b852918
No related branches found
No related tags found
No related merge requests found
...@@ -8,9 +8,8 @@ global artoaGui artoaWorkspace artoaDataInput; ...@@ -8,9 +8,8 @@ global artoaGui artoaWorkspace artoaDataInput;
%% Get data %% Get data
try try
selectedColumn = event.Indices(2); selectedColumn = event.Indices(2);
selectedRow = event.Indices(:, 1);
catch catch
return; selectedColumn = NaN;
end end
%% Check if the column that has been edited is locked %% Check if the column that has been edited is locked
......
...@@ -13,13 +13,14 @@ end ...@@ -13,13 +13,14 @@ end
%% Add variable %% Add variable
offsetsTable(end + 1, :) = artoa.offsets.getDefaultRowValues(); offsetsTable(end + 1, :) = artoa.offsets.getDefaultRowValues();
offsetsTable.Properties.RowNames{end} = pSoundsource.sourcename; offsetsTable.Properties.RowNames{end} = pSoundsource.sourcename;
offsetTable{end, variableNames{1}} = artoa.convert.dmy2rd(pSoundsource.offset(3), pSoundsource.offset(2), pSoundsource.offset(1)); variableNames = offsetsTable.Properties.VariableNames;
offsetTable{end, variableNames{2}} = pSoundsource.offset(4); offsetsTable{end, variableNames{1}} = artoa.convert.dmy2rd(pSoundsource.offset(3), pSoundsource.offset(2), pSoundsource.offset(1));
offsetTable{end, variableNames{3}} = artoa.convert.dmy2rd(pSoundsource.rcv_offset(3), pSoundsource.rcv_offset(2), pSoundsource.rcv_offset(1)); offsetsTable{end, variableNames{2}} = pSoundsource.offset(4);
offsetTable{end, variableNames{4}} = pSoundsource.rcv_offset(4); offsetsTable{end, variableNames{3}} = artoa.convert.dmy2rd(pSoundsource.rcv_offset(3), pSoundsource.rcv_offset(2), pSoundsource.rcv_offset(1));
offsetTable{end, variableNames{5}} = pSoundsource.drift; offsetsTable{end, variableNames{4}} = pSoundsource.rcv_offset(4);
offsetTable{end, variableNames{8}} = pSoundsource.empiric_offset(4); offsetsTable{end, variableNames{5}} = pSoundsource.drift;
offsetTable{end, variableNames{9}} = pSoundsource.empiric_drift; offsetsTable{end, variableNames{8}} = pSoundsource.empiric_offset(4);
offsetsTable{end, variableNames{9}} = pSoundsource.empiric_drift;
%% Sort rows %% Sort rows
offsetsTable = sortrows(offsetsTable, 'RowNames'); offsetsTable = sortrows(offsetsTable, 'RowNames');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment