Skip to content
Snippets Groups Projects
Commit 6e09b6cc authored by whooie's avatar whooie
Browse files

don't need to divide out the extra four bits

parent aa2cc35e
No related branches found
No related tags found
No related merge requests found
......@@ -199,7 +199,7 @@ def compute_mot_number(image, QE, gain, exposure_time, solid_angle,
H, W = image.shape
im = image[H//3:2*H//3, W//3:2*W//3]
pd.Plotter().imshow(im).savefig("img.png").close()
electron_rate = im.astype(np.float64).sum() / 16 # get to 12-bit values
electron_rate = im.astype(np.float64).sum()
photon_rate \
= electron_rate \
/ 10**(gain / 10) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment