Skip to content
Snippets Groups Projects
Commit 8634bf6d authored by Marie-Anne Bizouard's avatar Marie-Anne Bizouard
Browse files

add a protection for seedless triggers

parent 2bb70265
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ function diagnostic(SearchPath,Data,varargin)
parse(p,SearchPath,Data,varargin{:});
data = p.Results.Data;
searchPath = p.Results.SearchPath;
if isempty(p.Results.Folder)
ff = [searchPath '/figures'];
......@@ -722,7 +722,8 @@ function diagnostic(SearchPath,Data,varargin)
end
end
if ~isprop(data,'lonetrack')
if ~strcmp(class(data.format),'classes.format.seedless')
% if ~isprop(data,'lonetrack')
[leg,m,idx]=decode(cut,data);
cellfun(@f9,cut,leg,idx);
......@@ -795,7 +796,8 @@ function diagnostic(SearchPath,Data,varargin)
close;
end
if ~isprop(data,'lonetrack')
if ~strcmp(class(data.format),'classes.format.seedless')
% if ~isprop(data,'lonetrack')
[leg,m,idx]=decode(cut,data);
cellfun(@f10,cut,leg,idx);
......@@ -958,7 +960,8 @@ function diagnostic(SearchPath,Data,varargin)
close;
end
if ~isprop(data,'lonetrack')
if ~strcmp(class(data.format),'classes.format.seedless')
% if ~isprop(data,'lonetrack')
[leg,m,idx]=decode(cut,data);
cellfun(@f13,cut,leg,idx);
......@@ -1060,7 +1063,8 @@ function diagnostic(SearchPath,Data,varargin)
figure()
if isprop(data,'lonetrack')
if strcmp(class(data.format),'classes.format.seedless')
% if isprop(data,'lonetrack')
hist33 (data.fmin, data.SNR,10,10)
else
idx=data.SNR<100;
......@@ -1080,7 +1084,8 @@ function diagnostic(SearchPath,Data,varargin)
logfile('plot : Fmax vs SNR');
figure()
if isprop(data,'lonetrack')
if strcmp(class(data.format),'classes.format.seedless')
%if isprop(data,'lonetrack')
hist33 (data.fmax, SNR,10,10)
else
idx=data.SNR<100;
......
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