Commit d60cd71d authored by Michael Coughlin's avatar Michael Coughlin

add more try except

parent a5134f2d
......@@ -562,11 +562,17 @@ function [] = diagnostic(searchPath)
hold all
imagesc(X,td_Y,M);
colorbar
l=cellfun(@(x) num2str(sqrt(x.alpha)*wvf.hrss,'%g\n') , injectionCell,'UniformOutput',false);
try
l=cellfun(@(x) num2str(sqrt(x.alpha)*wvf.hrss,'%g\n') , injectionCell,'UniformOutput',false);
catch
end
xlim([1 length(dataCell)])
ylim([-2 2]);
set(gca,'XTick',X);
set(gca,'XTickLabel',l);
try
set(gca,'XTickLabel',l);
catch
end
set(gca,'XTickLabelRotation',45);
xlabel('Hrss');
ylabel('Error on Time Delay (injected - recovered)[s]');
......
......@@ -86,12 +86,13 @@ function missedfound(searchPath)
load([searchPath '/results/results_merged/injections_' injName6 '_merged'...
'.mat']);
else
error(['file : searchPath '/results/results_merged/injections_' injName10 '_merged'...
continue
error(['file :' searchPath '/results/results_merged/injections_' injName10 '_merged' ...
'.mat']);
end
% fill first column
%
%continue
offset = nbInjections*(find(wvf.alphas==alpha)-1)+1;
ii = offset:offset+injections.numElements-1;
......@@ -226,7 +227,10 @@ function missedfound(searchPath)
hold off
set(gca,'YScale','log');
set(gca,'XLim',[min(results(results(:,2)~=0,2))-100000 max(results(:,2))+100000]);
try
set(gca,'XLim',[min(results(results(:,2)~=0,2))-100000 max(results(:,2))+100000]);
catch
end
leg={'Found injections'};
if length(missed)>0; leg=[leg 'Missed']; end
......@@ -290,7 +294,10 @@ function missedfound(searchPath)
xmax=10^(log10(max(X))+0.1*(log10(max(X))-log10(min(X))));
set(gca,'YLim',[0 max(1,max(max(ave(1,:)+sigma(1,:),max(ave2(1,:)+sigma2(1,:)))))]);
set(gca,'XLim',[xmin xmax]);
try
set(gca,'XLim',[xmin xmax]);
catch
end
xlabel(xlabel_text,'Fontsize',15);
ylabel('Stampas amplitude SNR / sqrt(SNR_{IFO1}^2+SNR_{IFO2}^2)', 'Fontsize',15);
......@@ -312,7 +319,11 @@ function missedfound(searchPath)
set(gca,'XMinorGrid','on');
set(gca,'YMinorGrid','on');
try
set(gca,'YLim',[0 max(max(ave(1,:)+sigma(1,:),max(ave2(1,:)+sigma2(1,:))))]);
catch
end
set(gca,'XLim',[1 20000]);
xlabel('<Simu. SNR>','Fontsize',15);
......
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