dodal.devices.oav.oav_parameters.OAVParameters#

class dodal.devices.oav.oav_parameters.OAVParameters[source]#

The parameters to set up the OAV depending on the context.

Methods

get_max_tip_distance_in_pixels(microns_per_pixel)

Get the maximum tip distance in pixels.

load_json(filename)

Loads the json from the specified file, and returns a dict with all the individual top-level k-v pairs, and one with all the subdicts.

update_context(context)

update_self_from_current_context()

static load_json(filename: str) tuple[dict[str, Any], dict[str, dict]][source]#

Loads the json from the specified file, and returns a dict with all the individual top-level k-v pairs, and one with all the subdicts.

Parameters:

filename (str)

Return type:

tuple[dict[str, Any], dict[str, dict]]

get_max_tip_distance_in_pixels(microns_per_pixel: float) float[source]#

Get the maximum tip distance in pixels.

Parameters:

microns_per_pixel (float)

Return type:

float