dylab/test_absorption_imaging.py
gao c0b291f547 Debug for calculating atom number.
Add background subtraction function.

Correct the pixel size of the camera
2022-07-26 09:57:45 +02:00

16 lines
615 B
Python

from lyse import *
from dylab import DyTransition, Camera, AbsorptionImaging
absorption_imaging_transition = DyTransition.creat_Dy421()
mot_3D_camera = Camera.c11440_36u(absorption_imaging_transition['wavelength'])
with AbsorptionImaging.absorption_imaging(path, 'MOT_3D_Camera', 'in_situ_absorption',
absorption_imaging_transition, mot_3D_camera, 0, 0) as absorption_image:
absorption_image.select_effective_data((800, 500), (1000, 700))
absorption_image.get_atom_number()
absorption_image.plot_result(-0.05, 0.05)
print(absorption_image.atom_number)