mxcubecore.HardwareObjects.MAXIV.MAXIVPyISPYyBDataAdapter#

Classes

MAXIVPyISPyBDataAdapter(duo_api_url, *args, ...)

Extend the standard ISPyB data adapter with MAXIV specific logic.

class mxcubecore.HardwareObjects.MAXIV.MAXIVPyISPYyBDataAdapter.MAXIVPyISPyBDataAdapter(duo_api_url: str, *args, **kwargs)[source]#

Bases: PyISPyBDataAdapter

Extend the standard ISPyB data adapter with MAXIV specific logic.

Parameters:

duo_api_url (str) –

create_session(proposal: Proposal) Session[source]#

Create a new Session object for the given proposal and beamline.

This is a lazy session creation, done automatically on the fly in case no appropriate session is found for the user, proposal and current day. This session is labelled with lazy prefix and is not posted to Py-ISPYB service until it is selected.

Parameters:

proposal (Proposal) – Proposal object to create session for

Returns:

Created session object

Return type:

Session

get_proposals()[source]#

Override method to filter proposals by the type, state and beamline name.

Include proposals: of type MX or MB in Open state and assigned to the current beamline. The last is checked via DUO API.