schrodinger.application.jaguar.keywordDB module

class schrodinger.application.jaguar.keywordDB.Keyword(name, type, default, description=None, comment=None, index=0, boolean=None, qsite_allowed=None)

Bases: object

A class to hold keyword info.

get_macro()

Return C-style macro string from Keyword attributes

class schrodinger.application.jaguar.keywordDB.Setting(name, code, value, description=None, comment=None)

Bases: object

A class to hold keyword setting info.

get_macro()

Return C-style macro string from Setting attributes

class schrodinger.application.jaguar.keywordDB.DTDTreeBuilder

Bases: xml.etree.ElementTree.TreeBuilder

We create this subclass and redefine doctype() to avoid:
“DeprecationWarning: This method of XMLParser is deprecated.
Define doctype() method on the TreeBuilder target”
doctype(name, pubid, system)
schrodinger.application.jaguar.keywordDB.load_keywords(filename)

Load keywords from an XML file in jaguar_keywords.dtd format. Return a list and dictionary of Keyword objects. Keyword names and values are stored in lowercase.