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

Bugfix, the empiric_drift and offset has not been set during creation of the offset table.

parent dd77595b
No related branches found
No related tags found
No related merge requests found
267
\ No newline at end of file
268
\ No newline at end of file
......@@ -73,10 +73,9 @@ if iscell(pSoundsources)
offsetTable{i + 1, variableNames{3}}, ...
offsetTable{i + 1, variableNames{4}}, ...
offsetTable{i + 1, variableNames{5}}, ...
offsetTable{i + 1, variableNames{6}} ...
offsetTable{i + 1, variableNames{6}}, ...
offsetTable{i + 1, variableNames{7}} ...
] = extract(pSoundsources{i});
offsetTable{i + 1, variableNames{7}} = ...
artoa.data.getMember(pSoundsources{i}, {'empiric_drift'}, NaN);
end
end
......@@ -90,12 +89,14 @@ if isstruct(pSoundsources)
offsetTable{i + 1, variableNames{2}}, ...
offsetTable{i + 1, variableNames{3}}, ...
offsetTable{i + 1, variableNames{4}}, ...
offsetTable{i + 1, variableNames{5}} ...
offsetTable{i + 1, variableNames{5}}, ...
offsetTable{i + 1, variableNames{6}}, ...
offsetTable{i + 1, variableNames{7}} ...
] = extract(pSoundsources.(fnames{i}));
end
end
function [startDate, startOffset, endDate, endOffset, drift, empiric_offset] = extract(pSoundsource)
function [startDate, startOffset, endDate, endOffset, drift, empiric_offset, empiric_drift] = extract(pSoundsource)
startDate = NaN;
startOffset = NaN;
endDate = NaN;
......@@ -141,6 +142,7 @@ end
if length(pSoundsource.empiric_offset) == 4
empiric_offset = pSoundsource.empiric_offset(4);
end
empiric_drift = artoa.data.getMember(pSoundsource, {'empiric_drift'}, NaN);
end
end
......
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