Commit 6098b2ee authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter
Browse files

try to get full history in measurements

for some reason the history is deleted in some function (mtimes) etc..
parent dc78e2dd
...@@ -310,6 +310,12 @@ classdef itaMSRecord < itaHandle ...@@ -310,6 +310,12 @@ classdef itaMSRecord < itaHandle
% Write result % Write result
result.comment = [this.comment result.comment]; % Add comment. result.comment = [this.comment result.comment]; % Add comment.
result = ita_metainfo_rm_historyline(result,'all'); % Remove all history lines. result = ita_metainfo_rm_historyline(result,'all'); % Remove all history lines.
% add history line
commitID = ita_git_getMasterCommitHash;
if ~isempty(commitID)
result = ita_metainfo_add_historyline(result,'Measurement',commitID);
end
end end
function [result, max_rec_lvl] = run(this) function [result, max_rec_lvl] = run(this)
......
...@@ -242,7 +242,7 @@ end ...@@ -242,7 +242,7 @@ end
result.data(~isfinite(result.data)) = 0; result.data(~isfinite(result.data)) = 0;
%% Add history line %% Add history line
result = ita_metainfo_rm_historyline (result,'all'); % result = ita_metainfo_rm_historyline (result,'all');
varargout{1} = ita_metainfo_add_historyline(result,'itaSuper.mtimes',varargin,'withSubs'); varargout{1} = ita_metainfo_add_historyline(result,'itaSuper.mtimes',varargin,'withSubs');
end end
......
...@@ -111,7 +111,7 @@ for idx = 1:data.nChannels ...@@ -111,7 +111,7 @@ for idx = 1:data.nChannels
end end
%% Add history line %% Add history line
result = ita_metainfo_rm_historyline(result,'all'); % result = ita_metainfo_rm_historyline(result,'all');
result = ita_metainfo_add_historyline(result,mfilename,varargin); result = ita_metainfo_add_historyline(result,mfilename,varargin);
varargout{1} = result; varargout{1} = result;
......
...@@ -96,6 +96,10 @@ if nargin >= 3 % the function had some input arguments ...@@ -96,6 +96,10 @@ if nargin >= 3 % the function had some input arguments
end end
elseif isa(arguments,'itaSuper') elseif isa(arguments,'itaSuper')
argumentStr = '(audioObj)'; argumentStr = '(audioObj)';
if withSubs
sub_historylines{length(sub_historylines)+1} = arguments.history; %#ok<AGROW>
end
end end
dateLine = ''; dateLine = '';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment