dodal.devices.zocalo.zocalo_results#

Classes

SortKeys

XrcResult

ZocaloResults

An ophyd device which can wait for results from a Zocalo job.

ZocaloSource

Functions

bbox_size(result)

get_dict_differences(dict1, dict1_source, ...)

Returns a string containing dict1 and dict2 if there are differences between them, greater than a 1e-5 tolerance.

get_processing_result(zocalo)

A minimal plan which will extract the top ranked xray centre and crystal bounding box size from the zocalo results.

source_from_results(results)

Exceptions

NoResultsFromZocalo

NoZocaloSubscription

dodal.devices.zocalo.zocalo_results.bbox_size(result: XrcResult)[source]#
Parameters:

result (XrcResult)

dodal.devices.zocalo.zocalo_results.get_dict_differences(dict1: dict, dict1_source: str, dict2: dict, dict2_source: str) str | None[source]#

Returns a string containing dict1 and dict2 if there are differences between them, greater than a 1e-5 tolerance. If dictionaries are identical, return None

Parameters:
Return type:

str | None

dodal.devices.zocalo.zocalo_results.source_from_results(results)[source]#
dodal.devices.zocalo.zocalo_results.get_processing_result(zocalo: ZocaloResults) Generator[Any, Any, tuple[ndarray, ndarray] | tuple[None, None]][source]#

A minimal plan which will extract the top ranked xray centre and crystal bounding box size from the zocalo results. Returns (None, None) if no crystals were found.

Parameters:

zocalo (ZocaloResults)

Return type:

Generator[Any, Any, tuple[ndarray, ndarray] | tuple[None, None]]