schrodinger.application.livedesign.login module¶
Login page of the Maestro LiveDesign Export GUI.
Copyright Schrodinger, LLC. All rights reserved.
-
class
schrodinger.application.livedesign.login.
LDMode
¶ Bases:
str
,enum.Enum
Enumerate the different LiveDesign modes.
-
DRUG_DISCOVERY
= 'DRUG_DISCOVERY'¶
-
MATERIALS_SCIENCE
= 'MATERIALS_SCIENCE'¶
-
-
class
schrodinger.application.livedesign.login.
LiveDesignLoginDialog
(*args, **kwargs)¶ Bases:
schrodinger.ui.qt.appframework2.settings.SettingsPanelMixin
,schrodinger.ui.qt.basewidgets.BaseWidget
-
initSetOptions
()¶ Suggested subclass use: set instance variables, excluding layouts and subwidgets.
-
initSetUp
()¶ Creates widget from
ui
and stores itui_widget
.Suggested subclass use: create and initialize subwidgets, and connect signals.
-
setDefaults
()¶
-
definePanelSettings
()¶ See parent class for docstring
-
connectToLD
()¶ Returns False if an error occurred.
Returns: Whether to continue to the next panel. Return type: bool
-
checkHost
()¶ Checks the host field, adds http protocol if none, and removes any trailing ‘/’
-
setupLDClient
()¶ Fetches client.py from the given host.
-
onProjectClosed
()¶ If current project is closed, then all saved credentials will be reset.
-
-
schrodinger.application.livedesign.login.
required_login_info_set
()¶ Checks and returns whether the required login information is set in order to setup LDClient
-
schrodinger.application.livedesign.login.
get_ld_client_and_models
()¶ Returns a new instance of ldclient.client.LDClient() and ld_client.models using the login credentials and the host server set in the Live Design login panel. If the instantiation was unsuccessful, the first object in the tuple will hold the error msg - otherwise, it will hold an empty str.
Returns: tuple of error msg str, new instance of the LD Client, and the ldclient.models module Return type: (str, ldclient.client.LDClient(), ldclient.models)
-
schrodinger.application.livedesign.login.
get_host
()¶
-
schrodinger.application.livedesign.login.
get_username
()¶
-
schrodinger.application.livedesign.login.
get_LD_version
(ld_client)¶ Given an LDClient instance, return the LD version number.
Parameters: ld_client ( ld_client.LDClient
) – instance of the LDClientReturns: the version number of the LD server - ex: 8.0 Return type: float
-
schrodinger.application.livedesign.login.
get_LD_mode
(ld_client)¶ Given an LDClient instance, return the LD instance mode. For example, if the instance is in DRUG_DISCOVERY or MATERIAL_SCIENCE mode, etc. Note, that for older LD versions (< 8.6), there was no concept of a LD mode, and thus we assume the default mode of DRUG_DISCOVERY.
Parameters: ld_client ( ld_client.LDClient
) – instance of the LDClientReturns: the server mode. Return type: str
-
schrodinger.application.livedesign.login.
panel
()¶