mxcubeweb.core.adapter.detector_adapter#

Classes

DetectorAdapter(ho, role, app)

DisplayImageParams(*, path, img_num)

class mxcubeweb.core.adapter.detector_adapter.DetectorAdapter(ho, role, app)#

Bases: AdapterBase

display_image(params: DisplayImageParams) → dict#

Notify ADXV and/or Braggy of the image to display.

Parameters:

params (DisplayImageParams) –

Return type:

dict

get_value() → dict#

Get the file suffix of the data files.

Return type:

dict

state()#

Retrieve the state of the underlying hardware object as a JavaScript string.

Retrieves the state of the underlying hardware object and converts it to a str that can be used by the javascript front end.

Returns:

The state

Return type:

(str)

class mxcubeweb.core.adapter.detector_adapter.DisplayImageParams(*, path: Path, img_num: int)#

Bases: BaseModel

Parameters:
  • path (Path) –

  • img_num (int) –