schrodinger.application.livedesign.ld_import_utils module¶
- class schrodinger.application.livedesign.ld_import_utils.LDImportTask(info_task, import_task)¶
Bases:
tuple
- import_task¶
Alias for field number 1
- info_task¶
Alias for field number 0
- class schrodinger.application.livedesign.ld_import_utils.LDImportTaskManager¶
Bases:
QObject
Manages the tasks for importing structures from LiveDesign. It takes care of doing required post processing after the import task is done, i.e to import structure file in maestro.
- Variables:
instance – The singleton instance of the class.
- instance = None¶
- __init__()¶
- static getInstance() Self ¶
Returns the singleton instance of the class.
- Returns:
The singleton instance of the class.
- addLDImportTask(task: LDImportTask, structure_file_path: str)¶
Adds task to list of tasks managed by this class.
- Parameters:
task – is the LDImportTask to be added and managed by this instance.
structure_file_path – is file path where tasks result (output structures) are to be dumped on disk.
- add3DGenericEntityImportTask(task: Import3DGenericEntitiesTask, structure_file_path: str)¶
Adds task to list of tasks managed by this class.
- Parameters:
task – is the Import3DGenericEntitiesTask to be added and managed by this instance.
- schrodinger.application.livedesign.ld_import_utils.process_ld_import_request(live_report_id: str, report_level: str, column_ids: List[str], row_keys: List[str])¶
Imports structures from the LiveDesign server.
- Parameters:
live_report_id – The live report ID to be used for structure search.
report_level – The report level to be used while calling the API.
column_ids – Column IDs to limit the search to.
row_keys – Row keys to limit the search to.
- schrodinger.application.livedesign.ld_import_utils.process_ld_import_generic_entity_request(manageable_file_id: str)¶
Downloads generic entity from the LiveDesign server asynchronously.
- Parameters:
manageable_file_id – The manageable file ID to be used for downloading the generic entity.
:return : The Import3DGenericEntitiesTask object.