AFL.automation.instrument.OpticalTurbidity#

Classes

Driver(name[, defaults, overrides, ...])

Eq(key, value)

Query equality of a given key's value to the specified value.

NeutronSampleCell([overrides])

Describe the circular optical region of a neutron sample cell.

OpticalTurbidity([camera, overrides, ...])

SampleCell([overrides])

Base interface for sample-cell image geometry.

class AFL.automation.instrument.OpticalTurbidity.OpticalTurbidity(camera=None, overrides=None, sample_cell=None)[source]#
defaults = {'camera_index': 0, 'camera_interface': 'http', 'camera_url': 'http://afl-video:8081/103/current', 'empty_uuid': '', 'save_path': '/home/afl642/2305_SINQ_TurbidityImages/'}#
__init__(camera=None, overrides=None, sample_cell=None)[source]#

Initialize OpticalTurbidity calculator driver.

Parameters:
  • camera (object, optional) – Camera object (for example, a NetworkCamera instance). If None, one will be created when using the HTTP interface.

  • overrides (dict, optional) – Configuration overrides for PersistentConfig.

  • sample_cell (SampleCell, optional) – Geometry and image-processing strategy. Defaults to a NeutronSampleCell.

measure(set_empty=False, plotting=False, **kwargs)[source]#

This is an optical turbidity measurement observing the SANS cell.

Parameters:
  • set_empty (bool, optional) – If True, set the current image as the empty reference image.

  • plotting (bool, optional) – If True, save diagnostic plots.

  • **kwargs (dict) – Additional arguments passed to image collection.

Returns:

Dataset with turbidity measurements and images. When set_empty=True, the dataset contains the captured empty image.

Return type:

xarray.Dataset