mxcubecore.HardwareObjects.ProposalTypeISPyBLims#

Classes

ProposalTypeISPyBLims(name)

ISPyB proposal-based client

class mxcubecore.HardwareObjects.ProposalTypeISPyBLims.ProposalTypeISPyBLims(name)[source]#

Bases: ISPyBAbstractLIMS

ISPyB proposal-based client

get_full_user_name()[source]#

Returns the user name of the current user

get_proposals_by_user(login_id: str)[source]#

Returns a list with proposal dictionaries for login_id

Proposal dictionary structure:
{

“Proposal”: proposal, “Person”: , “Laboratory”:, “Session”:,

}

Parameters:

login_id (str) –

get_user_name()[source]#

Because it is a proposal based it returns the proposal plus the uuid4

is_user_login_type()[source]#

Returns True if the login type is user based (not done with proposal)

login(user_name: str, password: str, is_local_host: bool) LimsSessionManager[source]#

Login to LIMS, returns a list of Session objects for login_id

Parameters:
  • login_id – username

  • password (str) – password

  • create_session – True if session should be created by LIMS if it does not exist otherwise False

  • user_name (str) –

  • is_local_host (bool) –

Return type:

LimsSessionManager

set_active_session_by_id(proposal_name: str) Session[source]#

Given a proposal name it will select a session that is scheduled on this beamline in the current timeslot

Parameters:

proposal_name (str) –

Return type:

Session