Auto stash before checking out "HEAD"

This commit is contained in:
Silas Oettinghaus
2023-09-21 16:25:20 +02:00
parent 8b3bc688dd
commit 462cfa0ed1
3 changed files with 79 additions and 15 deletions

View File

@@ -4,13 +4,15 @@ lw = [0.1e6 1e6 10e6];
for lp = 1
dc_mu = 0.05;
sir = -20;%sir_loop(lp);
sir = sir_loop(1);
rng(lp);
%% Set Simulation Variables
O = 12; %order of prbs
N = 2^(O-1); %length of prbs
[~,seed] = prbs(O,1); %initialize first seed of prbs
sir = sir;
@@ -77,7 +79,7 @@ for lp = 1
eq = EQ("K",2,"plottrain",0,"plotfinal",0,...
"training_length",4096,"training_loops",2,...
"Ne",[50,5,3],"Nb",[3,2,2],...
"DCmu",dc_mu,"DDmu",[0.0004 0.0005 0.0006 0.0007 ],"DFEmu",0.005,"FFEmu",0.005,...
"DCmu",0.005,"DDmu",[0.0004 0.0005 0.0006 0.0007 ],"DFEmu",0.005,"FFEmu",0.005,...
"dd_loops",2,"epsilon",[10 100 1000 ],"M",2,...
"thres",[0.005 0.004 0.0005 ],"l1act",0,"delay",0,"rho",0.0005,"ideal_dfe",0,"DB_aim",0);
@@ -135,6 +137,9 @@ for lp = 1
disp(['SIR ',num2str(10*log10(X.power/R.power))]);
%%
X = opticatten.process(X);
% X = edfaamp.process(X);
X = X+R;
@@ -164,7 +169,7 @@ for lp = 1
% wl = 1000; % symbols
% Eq_in.signal = Eq_in.signal - 1/wl .* movsum( Eq_in.signal,[wl/2,wl/2]);
[Eq_out] = eq2.process(Eq_in,reference);
[Eq_out] = eq.process(Eq_in,reference);
%% MPI reduction DC removal
wl = 1000; % symbols
@@ -186,15 +191,15 @@ for lp = 1
wl = 100; % symbols
smoothed = ( 1/wl .* movsum(e,[wl/2,wl/2]) );
% remove interference
for level = 0:3
yk_lvsm.signal(pre_decision_level_uni==level) = yk_lvsm.signal(pre_decision_level_uni==level) - smoothed(pre_decision_level_uni==level);
yk_lvlp.signal(pre_decision_level_uni==level) = yk_lvlp.signal(pre_decision_level_uni==level) - filtered(pre_decision_level_uni==level);
end
%
% figure(26);plot(1:length(error_log),error_log(:,end),"LineWidth",0.4);ylim([-0.8 0.8]);ylabel('$\epsilon$'),title(['Linewidth: ',num2str(laser_linewidth*1e-6), 'MHz'])
%
% figure(28);plot(1:length(e),e,"LineWidth",0.4);ylim([-0.8 0.8]);
%subplot(1,5,lp)
xax = 1:eq_out.length;
scatter(xax,eq_out.signal,4,'.','MarkerEdgeColor',col(6,:),'DisplayName','After EQ');
xlim([1, xax(end)]);
ylim([-2 2]);
xlabel('Sampling Index')
ylabel('Amplitude')
legend
end
@@ -315,6 +320,6 @@ for lp = 1
hold off
end
end