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(micronsPerPixel)

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)

param context:

update_self_from_current_context()

rtype:

None

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(micronsPerPixel: float) float[source]#

Get the maximum tip distance in pixels.

Parameters:

micronsPerPixel (float)

Return type:

float