labscript_utils.camera_server.TubingenCameraServer

class labscript_utils.camera_server.TubingenCameraServer(port)[source]

Bases: CameraServer

Minimalistic camera server. Transition to buffered and abort are not implemented, because we don’t need to do anything in those cases. This camera server simply writes to the h5 file the images, which have been saved to disk during each shot by an external program.

__init__(port)

Methods

__init__(port)

abort()

To be overridden by subclasses.

handler(request_data)

To be overridden by subclasses.

mainloop()

setup_auth(context)

Deprecated.

shutdown()

shutdown_on_interrupt()

timeout()

A function to call every self.timeout_interval seconds in the same thread as the handler.

transition_to_buffered(h5_filepath)

To be overridden by subclasses.

transition_to_static(h5_filepath)

Read FITS images from file saved by an external program, and save them to the h5 file

abort()[source]

To be overridden by subclasses. Return cameras and any other state to one in which transition_to_buffered() can be called again. abort() will be called if there was an exception in either transition_to_buffered() or transtition_to_static(), and so should ideally be written to return things to a sensible state even if those methods did not complete. Like any cleanup function, abort() should proceed to further cleanups even if earlier cleanups fail. As such it should make liberal use of try: except: blocks, so that an exception in performing one cleanup operation does not stop it from proceeding to subsequent cleanup operations

transition_to_buffered(h5_filepath)[source]

To be overridden by subclasses. Do any preparatory processing before a shot, eg setting exposure times, readying cameras to receive triggers etc.

transition_to_static(h5_filepath)[source]

Read FITS images from file saved by an external program, and save them to the h5 file