mxcubecore.HardwareObjects.MAXIV.ISPyBLims#
Classes
|
Exceptions
Exception raised when no expected session found. |
- class mxcubecore.HardwareObjects.MAXIV.ISPyBLims.ISPyBLims(name: str)[source]#
Bases:
UserTypeISPyBLims- Parameters:
name (str) –
- ispyb_login(user_name: str, password: str)[source]#
Authenticate with ISPyB REST services.
In fact password is an access token obtained from Keycloak, but we call it password to keep the interface consistent with other LIMS implementations.
- set_active_session_by_id(session_id: str) Session[source]#
Sets session with session_id to active session.
It is possible that user picks the session that does not exist in the database yet, so called lazy session created on the fly. In that case the session POST request is sent to the server in order to create the session in the database and get the proper session id.