mxcubeweb.core.adapter.sample_changer_adapter#

Classes

SampleChangerAdapter(ho, role, app)

Adapter for AbstractSampleChanger.

class mxcubeweb.core.adapter.sample_changer_adapter.SampleChangerAdapter(ho, role, app)[source]#

Bases: AdapterBase

Adapter for AbstractSampleChanger.

state()[source]#

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)

sync_with_crims()[source]#

Synchronize with Crims.

To be used mostly when diffractometer is in plate mode. This returns a list of crystal dicts available in Crims that have been harvested. With this, the user can visualize more easily where the crystals are in the plate GUI.