pyfast_adt.main.adaptor.camera.adaptor_ceta

Attributes

cam

Classes

Cam_ceta

Software interface for the Gatan us4000 camera passing through temscript interface. in general gatan cameras

Module Contents

class pyfast_adt.main.adaptor.camera.adaptor_ceta.Cam_ceta(instance_gui=None)

Bases: pyfast_adt.main.adaptor.camera.adaptor_cam.Cam_base

Software interface for the Gatan us4000 camera passing through temscript interface. in general gatan cameras can be used using temscript if they are enabled in Tecnai User Interface

name = None
exposure = None
x = None
y = None
processing = None
delay = None
binning = None
buffer_size = None
buffer = None
stop_signal = None
cam = None
tem = None
table = None
instance_gui = None
connect()

Connect to the camera.

connect_tia()

acquisition continuous using tia memory buffer in search mode

initialize_detector()
release_connection()

‘ release the connection with the device

get_binning()

get binning value like a conventional CCD camera

set_binning(binning: int)

set binning value like a conventional CCD camera

get_image_size()

in temscript image_size control the readout area parameter in the CCDTV Camera tab, from temscript is possible from a 4k**2 cam to reach a 1k**2 cam maximum.

image_size == “FULL” (2k), “HALF” (1k), “QUARTER” (512)

set_processing(processing: str)

set processing, UNPROCESSED = 0, DEFAULT = 1

get_processing()

get binning value like a conventional CCD camera

acquire_image(exposure_time: int, binning: int, processing: str)

Acquire image through its adaptor and return it as np.array.

acquire_image_and_show(exposure_time: int, binning: int, processing='Background subtracted')
rotate_img(img, times=None, flip_h=None, flip_v=None, flip_diag=None)
stop_liveview() None

‘ stop the live view of the camera

start_liveview(delay: float = 3.0) None

‘ start the live view of the camera

set_exposure(exposure_time: int) None

Set exposure time in ms. from the gui the exposure is already in ms!

get_exposure() int

Return exposure time in ms.

acquire_series_images(exposure_time: int, binning: int, processing: str, buffer_size: int, stop_signal, display=False)
prepare_acquisition_cRED_data(camera, binning, exposure, buffer_size, FPS_devider=1)

“ camera = BM-Ceta, binning = one of the available binning for the choosen camera, exposure = choosen exposure, buffer_size = dimension of the stack where saving the output images

acquisition_cRED_data(stage_thread=None, timer=None, event=None, stop_event=None)

Acquire images into the buffer up to the thread is alive, usually the stage thread is passed for cRED experiments

save_cRED_data(savingpath, processing='Unprocessed')
get_camera_characteristic()
load_calibration_table()
is_cam_streaming()

True is the camera have a live mode where you can retrieve the images from the memory like the xf416r, otherwise False like the timepix1

is_cam_bottom_mounted()

True if the camera is mounted on the bottom of the microscope, otherwise False

acquire_image_cred()
pyfast_adt.main.adaptor.camera.adaptor_ceta.cam