11.08., 9:00 - 11:00: Due to updates GitLab will be unavailable for some minutes between 09:00 and 11:00.

Commit f4ed3b20 by Arne Striegler 😁

### Kleinkram

parent 35c90120
 ... @@ -77,12 +77,12 @@ for c in range(0, 0): ... @@ -77,12 +77,12 @@ for c in range(0, 0): ############################ ############################ E = amp(E = E, Pmean = 0) E = amp(E = E, Pmean = 0) print('1:', osnr( E = E)) Ein = copy.deepcopy(E) Ein = copy.deepcopy(E) plt.figure(1) plt.figure(1) # Get decision matrix # Get decision matrix Dec_x, Esx_re_ax, Esx_im_ax, Dec_y, Esy_re_ax, Esy_im_ax = get_decision_matrix(gp, Ein, [constpts_x, constpts_y], [symbols_x, symbols_y], filter_f0) Dec_x, Esx_re_ax, Esx_im_ax, Dec_y, Esy_re_ax, Esy_im_ax = get_decision_matrix(gp, Ein, [constpts_x, constpts_y], [symbols_x, symbols_y], filter_f0) print('1:', osnr( E = E)) # Plot decision matrix # Plot decision matrix plt.figure(1) plt.figure(1) plt.subplot(2, 1, 1); h = plt.contourf(Esx_re_ax, Esx_im_ax, Dec_x, 32, cmap=plt.cm.jet ) plt.subplot(2, 1, 1); h = plt.contourf(Esx_re_ax, Esx_im_ax, Dec_x, 32, cmap=plt.cm.jet ) ... @@ -93,6 +93,6 @@ plt.plot(np.real(E[0]['E'][1][int(gp.sps/2)::gp.sps]), np.imag(E[0]['E'][1][int( ... @@ -93,6 +93,6 @@ plt.plot(np.real(E[0]['E'][1][int(gp.sps/2)::gp.sps]), np.imag(E[0]['E'][1][int( # Calculate BER # Calculate BER ############################ ############################ BER = calc_BER (gp, E, [constpts_x, constpts_y], osnr( E = E), Dec_x, Dec_y, Esx_re_ax, Esx_im_ax, Esy_re_ax, Esy_im_ax, 10, filter_f0, [symbols_x, symbols_y]) BER = calc_BER (gp, E, [constpts_x, constpts_y], osnr( E = E), Dec_x, Dec_y, Esx_re_ax, Esx_im_ax, Esy_re_ax, Esy_im_ax, 10, filter_f0, [symbols_x, symbols_y]) print('1:', osnr( E = E)) print(BER) print(BER) plt.show() plt.show() \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!