Copyright Schrodinger, LLC. All rights reserved.
str
|
set_source_path(struct,
backend=None,
job=None)
Set the source path property to the original job directory. |
|
|
str
|
get_source_path(source,
existence_check=True)
Get the source path to the original job directory |
|
|
launchapi.JobSpecificationArgsBuilder
|
prepare_job_spec_builder(argv,
program_name,
default_jobname,
input_fn=None,
set_driver_reserves_cores=False)
Prepare generic job specification builder. |
|
|
dict{string:any}
|
|
str
|
get_matsci_user_data_dir()
Get the absolute path to the user's local MatSci data directory for
storing custom templates, protocols, etc. |
|
|
dict
|
|
|
write_restart_parameters_file(driver,
args,
outpath)
Write out original arguments to parameters file and add the file as
an output file to any existing jobcontrol backend. |
|
|
str
|
|
|
|
|
archive_job_data(path,
files_path)
Create a gzipped tar archive in the current directory from the
provided list of file paths. |
|
|
|
create_restart_launcher(script,
prog,
input_name,
output_name,
zip_name,
options,
args) |
|
|
list
|
create_restart_jobcmd(driver_path,
zip_fn,
restart_options,
args,
default_jobname)
Generate command-line list for the job restart. |
|
|
|
write_idfile(jobobj)
Store the job id in a file as a signal to the GUI that a new job has
been launched. |
|
|
any
|
get_option(options,
flag)
Return the option value associated with flag |
|
|
|
set_option(options,
flag,
value)
Set the option value associated with flag |
|
|
|
|
tuple
|
|
|
|
|
parse_keyword_list(options,
exit_on_error=True,
logger=None,
validate=False)
Adds keystring and keydict properties to the argparse options object
that are the list of keyword arguments turned into, respectively, a
string or a dictionary. |
|
|
|
|
bool or (bool, str)
|
check_license(panel=None,
token=94,
name='
' ,
as_validator=False)
Check if a valid token exists |
|
|
str or None
|
create_run_dir(panel,
jobname)
Create a subdirectory to run a job in, asking the user and removing
existing directories if needed. |
|
|
|
|
|
working_directory(*args,
**kwds)
A context manager which changes the working directory to the given
path, and then changes it back to its previous value on exit. |
|
|
str
|
clean_string(string,
default=' title ' )
Cleans the given string by removing special characters to make it
acceptable for a file name. |
|
|
|
zip_and_set_incorporation(zipname,
filelist)
Zip up all the requested files and set the resulting archive as the
job control backend structure output file (if runnning under job
control). |
|
|
str
|
|
string
|
get_jobname(default_jobname)
Return a the jobname from backend, command line (-NAMEJOB /
environment), DEFAULT_JOBNAME |
|
|
|
__doc__ = ...
|
|
FLAG_KEYWORDS = ' -keywords '
|
|
SAVE_FLAG = ' -save_trj_data '
|
|
SAVE_NONE = ' none '
|
|
SAVE_CMS = ' cms '
|
|
SAVE_TRJ = ' trj '
|
|
SAVE_FLAG_OPTS = [ ' none ' , ' cms ' , ' trj ' ]
|
|
DRIVER = ' driver '
|
|
ARGS = ' args '
|
|
RESTART_PARAMETERS_FILENAME = ' parameters.cmd '
|
|
FLAG_USEZIPDATA = ' -use_zip_data '
|
|
FLAG_RESTART_PROJ = ' -restart_proj '
|
|
FLAG_RESTART_DISP = ' -restart_disp '
|
|
FLAG_RESTART_VIEWNAME = ' -restart_viewname '
|
|
FLAG_RESTART_HOST = ' -restart_host '
|
|
FLAG_RESTART_JOBNAME = ' -restart_jobname '
|
|
RESTART_PROGRAM_NAME = ' RestartWorkflow '
|
|
RESTART_DEFAULT_JOBNAME = ' restart_workflow '
|
|
CLEAN_AND_UNIQUIFY_MAX_LEN = 100
|
|
APP_DIR = ' matsci_templates '
|
|
DOLLARS = re.compile(r'( [^ \\] ) \$')
|
|
SOURCE_PATH_PROP = ' s_m_Source_Path '
|
|
TGZ_FORMAT = 2
|
|
__package__ = ' schrodinger.application.matsci '
|
|
__warningregistry__ = { ( ' This function is deprecated. Use get_ ...
|