pyrosetta_help.init_ops package
Submodules
pyrosetta_help.init_ops.log module
- pyrosetta_help.init_ops.log.configure_logger() Logger [source]
The function get_logger, simply adds a stringIO handler to the log and captures the log, thus making it easier to use. The function get_log_entries, spits out entries of a given level.
- Returns:
logger
- pyrosetta_help.init_ops.log.get_log_entries(levelname: str | int = 20, query: None | str = None) List[Dict[str, Any]] [source]
Get a list of all entries in log at a given level. levelname can be either an int (
logging.INFO
etc. are numbers multiples of 10 in increasing severity) or a string of the level. Note that it is very crude: if INFO is requested, ERROR is not shown!- Parameters:
levelname – int for the level number or str of the name
- Returns:
List of str
pyrosetta_help.init_ops.make_options module
- pyrosetta_help.init_ops.make_options.make_option_string(**options)[source]
This just converts the key:value pairs to a command line string for the pyrosetta init.
>> make_option_string(no_optH=False, ex1=None, remodel=dict(blueprint=’mod.blue’))
Bools are converted, None results in a value argument, Tuples are converted to xx:xx type arguments Dictionaries are converted to xx:xx type arguments (multiple, if multiple keys in the nested dictionary)
Also… Full option list: https://www.rosettacommons.org/docs/latest/full-options-list