Skip to content
Snippets Groups Projects
Unverified Commit 753ea89f authored by Dmitry Kalinkin's avatar Dmitry Kalinkin Committed by GitHub
Browse files

truth_reconstruction.py: fix isnan condition (#62)

parent 90600db6
No related branches found
No related tags found
No related merge requests found
...@@ -404,7 +404,7 @@ def particle_plots(boolean_particle): ...@@ -404,7 +404,7 @@ def particle_plots(boolean_particle):
if not np.isnan(Y_error[1][1][each_bin]): if not np.isnan(Y_error[1][1][each_bin]):
ax4.text(x=-Y_error[1][0][each_bin],y=y_limits[1], ax4.text(x=-Y_error[1][0][each_bin],y=y_limits[1],
s= '\u03BC = %.3f\n\u03C3 = %.3f' % (Y_error[1][1][each_bin],Y_error[1][3][each_bin]),size=text_size,horizontalalignment='center',verticalalignment='top') s= '\u03BC = %.3f\n\u03C3 = %.3f' % (Y_error[1][1][each_bin],Y_error[1][3][each_bin]),size=text_size,horizontalalignment='center',verticalalignment='top')
if not np.isnan(Y_error[0][4]): if not np.isnan(Y_error[1][4]):
ax1.set_ylim(0-(Y_error[1][4]*10),0+(Y_error[1][4]*10)) ax1.set_ylim(0-(Y_error[1][4]*10),0+(Y_error[1][4]*10))
ax2.set_ylim(0-(Y_error[1][4]*10),0+(Y_error[1][4]*10)) ax2.set_ylim(0-(Y_error[1][4]*10),0+(Y_error[1][4]*10))
fig.set_figwidth(20) fig.set_figwidth(20)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment