pysilcam.acquisition module

class pysilcam.acquisition.Acquire(USE_PYMBA=False, FAKE_PYMBA_OFFSET=0)

Bases: object

Class used to acquire images from camera or disc

get_generator_camera(datapath=None, writeToDisk=False, camera_config_file=None)

Aquire images from Silcam

Parameters
  • datapath – path from where the images are acquired.

  • writeToDisk – boolean indicating wether the acquired images have to be written to disc.

Yields

timestamp – timestamp of the acquired image. img: acquired image.

get_generator_disc(datapath=None, writeToDisk=False, camera_config_file=None)

Aquire images from disc

Parameters
  • datapath – path from where the images are acquired.

  • writeToDisk – this boolean is not used in this function, but the signature has to be the same as get_generator_camera.

Yields

timestamp – timestamp of the acquired image img: acquired image

wait_for_camera()

Waiting function that will continue forever until a camera becomes connected

pysilcam.acquisition.print_camera_config(camera)

Print the camera configuration