Commit c89f61c2 authored by Yb Tweezer's avatar Yb Tweezer
Browse files

adjust debug output

parent 39ae4f36
......@@ -18,7 +18,8 @@ H = 6.626070040e-34
C = 2.99792458e+8
#ROI = [932, 729, 155, 125] # [x, y, w, h]
ROI = [910, 680, 120, 120]
#ROI = [1000, 750, 30, 30]
ROI = [990, 810, 35, 35]
ROI_s = (S[ROI[1]:ROI[1] + ROI[3]], S[ROI[0]:ROI[0] + ROI[2]])
# ROI_bkgd = [945, 560, 100, 100]
......@@ -244,7 +245,7 @@ def compute_mot_number(image, QE, gain, exposure_time, solid_angle,
#im_bkgd = image[ROI_bkgd_s]
if k is not None:
#pd.Plotter().imshow(image).colorbar().savefig(f"image_{k}.png").close()
pd.Plotter().imshow(im,vmax=65535,vmin=5000).set_title(f'{k}').colorbar().savefig(f"img_{k}.png").close()
pd.Plotter().imshow(im,vmax=65535,vmin=5000).set_title(f'{k}').colorbar(cmap='jet').savefig(f"img_{k}.png").close()
#pd.Plotter().imshow(im_bkgd).colorbar().savefig(f"img_bkgd_{k}.png").close()
electron_rate = im.astype(np.float64).sum()
#electron_rate_bkgd = im_bkgd.astype(np.float64).sum()
......
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