Commad line facility for SIMBAD scripts
LogColorFormatter
(fmt=None, datefmt=None)[source]¶Bases: logging.Formatter
Formatter for log messages
Methods
converter (…) |
Convert seconds since the Epoch to a time tuple expressing local time. |
formatException (ei) |
Format and return the specified exception information as a string. |
formatTime (record[, datefmt]) |
Return the creation time of the specified LogRecord as formatted text. |
usesTime () |
Check if the format uses the creation time of the record. |
format |
LogColors
[source]¶Color container for log messages
COLORS
= {‘DEBUG’: 34, ‘DEFAULT’: 0, ‘CRITICAL’: 31, ‘WARNING’: 33, ‘ERROR’: 31}¶LogController
(reset=True)[source]¶Bases: object
Controller class for log messaging
Methods
add_console | |
add_logfile | |
close | |
get_levelname | |
get_logger | |
level_valid | |
reset |
LogLevels
[source]¶Log level container
LEVELS
= {‘INFO’: 20, ‘WARNING’: 30, ‘CRITICAL’: 50, ‘ERROR’: 40, ‘DEBUG’: 10, ‘NOTSET’: 0}¶ccp4_root
()[source]¶Run CCP4 specific checks to check if it was setup correctly
Returns: |
|
---|---|
Raises: |
|
ccp4_version
()[source]¶Identify the CCP4 version
Returns: |
|
---|---|
Raises: |
|
cleanup
(directory, csv, results_to_keep)[source]¶Function to clean up working directory results not reported by GUI
get_work_dir
(run_dir, work_dir=None, ccp4_jobid=None, ccp4i2_xml=None)[source]¶Figure out the relative working directory by provided options
make_workdir
(run_dir, ccp4_jobid=None, ccp4i2_xml=None, rootname=’SIMBAD_’)[source]¶Make a work directory rooted at work_dir and return its path
Parameters: |
|
---|---|
Returns: |
|
Raises: |
|
submit_mr_jobs
(mtz, mr_dir, search_results, refine_type, args)[source]¶Function to submit molecular replacement jobs
Parameters: |
|
---|---|
Returns: |
|