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

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
% Write result
result.comment = [this.comment result.comment]; % Add comment.
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
function [result, max_rec_lvl] = run(this)
......
......@@ -242,7 +242,7 @@ end
result.data(~isfinite(result.data)) = 0;
%% 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');
end
......
......@@ -111,7 +111,7 @@ for idx = 1:data.nChannels
end
%% 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);
varargout{1} = result;
......
......@@ -96,6 +96,10 @@ if nargin >= 3 % the function had some input arguments
end
elseif isa(arguments,'itaSuper')
argumentStr = '(audioObj)';
if withSubs
sub_historylines{length(sub_historylines)+1} = arguments.history; %#ok<AGROW>
end
end
dateLine = '';
......
Markdown is supported
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