Concrete implementation for Andor camera

Andor module (pymanip.video.andor)

This module is a shortcut for the pymanip.video.andor.camera.Andor_Camera class.

Andor Camera module (pymanip.video.andor.camera)

This module implement the Andor_Camera class, as a subclass of the pymanip.video.Camera base class. It uses the third-party pyAndorNeo module.

class pymanip.video.andor.camera.Andor_Camera(camNum=0)[source]

Concrete pymanip.video.Camera class for Andor camera.

Parameters

camNum (int, optional) – camera number, defaults to 0.

acquisition(num=inf, timeout=None, raw=False, raise_on_timeout=True)[source]

Concrete implementation of pymanip.video.Camera.acquisition() for the Andor camera.

acquisition_async(num=inf, timeout=None, raw=False, initialising_cams=None, raise_on_timeout=True)[source]

Concrete implementation of pymanip.video.Camera.acquisition_async() for the Andor camera.

acquisition_oneshot(timeout=1.0)[source]

Concrete implementation of pymanip.video.Camera.acquisition_oneshot() for the Andor camera.

close()[source]

This method closes the Camera handle.

get_exposure_time()[source]

This method returns the exposure time in seconds

set_exposure_time(seconds)[source]

This method sets the camera exposure time

Parameters

seconds (float) – exposure in seconds

Andor reader module (pymanip.video.andor.reader)

This module implements simple pure-python reader for Andor DAT and SIF files.

class pymanip.video.andor.reader.AndorAcquisitionReader(acquisition_folder)[source]

This class is a simple pure-python reader for Andor DAT spool files in a directory.

Parameters

acquisition_folder (str) – the folder in which to read the DAT spool files

images()[source]

This generator method yields the images found in the folder.

class pymanip.video.andor.reader.SIFFile(filename)[source]

This class implements a pure-python reader for Andor SIF files.

Parameters

filename (str) – the SIF filename

close()[source]

This method closes the file.

images()[source]

This generator yields all the frames in the file.

open()[source]

This method opens the file.

read_frame()[source]

The methods reads the next frame in file.

Returns

frame

Return type

numpy.ndarray

read_header()[source]

This method reads the header in the SIF file.

read_nth_frame(n)[source]

This method reads and returns the nth frame in the file.

Parameters

n (int) – frame number to read

Returns

frame

Return type

numpy.ndarray