pytweezer.analysis.analysis module¶
- pytweezer.analysis.analysis.EllipticalGaussian2D(pos, amplitude, xo, yo, sigma_x, sigma_y, theta, offset)[source]¶
- class pytweezer.analysis.analysis.TweezerExperimentAnalysis(year='26', month='01Jan', day='00')[source]¶
Bases:
object- array_baseline_measurement(images, backgrounds, grid_shape=(8, 8), trap_size=3, detection_step=100)[source]¶
- array_loading_threshold_measurement(zipNo, powers, datapoints, grid_positions, grid_shape, threshold, trap_size=3)[source]¶
- extract_survival_probabilities(startZip, num_datapoints, grid_positions, grid_shape=(8, 8), trap_size=3, loading_threshold=6)[source]¶
- getTemperature(startZipNo, endZipNo, bgZipNo, variable='TOF', show_images=False, incl_init_velocity=False)[source]¶
- get_array_loading_probability_general(images, grid_positions, threshold=6.85, window_size=5, binning=20)[source]¶
- get_array_loading_statistics(images, grid_positions, grid_shape, threshold=6.85, window_size=5, binning=20, show_histogram=True, threshold_detection=True, verbose=True)[source]¶
- get_cloud_density(file_start, file_end, bg_fileno, parameter_name, crop, to_crop=False, show_images=True)[source]¶
- get_fluorescence_atom_no(file_start, file_end, bg_fileno, parameter_name, crop, to_crop=False, show_images=True)[source]¶
- pytweezer.analysis.analysis.detect_trap_sites_general(img_array, atom_number, detection_step=100)[source]¶
- pytweezer.analysis.analysis.gaussian_high_pass(image, sigma_blur)[source]¶
Standard linear high-pass filter. Subtracts a Gaussian-blurred version of the image from itself.
- pytweezer.analysis.analysis.maxwell_boltzmann_cdf(P, Amp, Pc, P_offset)[source]¶
Fits the loading probability curve assuming a thermal ensemble.
- Parameters:
P – Tweezer Power (x-axis)
Amp – Saturation Amplitude (Max loading prob, e.g. ~0.55)
Pc – Characteristic Power (Proportional to Temperature)
P_offset – Shift in power (e.g. AOM turn-on threshold or background offset)
- pytweezer.analysis.analysis.morphological_tophat_high_pass(image, feature_size)[source]¶
Non-linear high-pass filter (Recommended for Tweezer Arrays). Extracts bright features smaller than the feature_size.
- pytweezer.analysis.analysis.sum_pixel_values(image_array, grid_positions, grid_shape, window_size=10)[source]¶
- pytweezer.analysis.analysis.sum_pixel_values_general(image_array, grid_positions, window_size=10)[source]¶