pydft_qmmm.system.selection_utils¶
A module containing helper functions for selection query parsing.
- pydft_qmmm.system.selection_utils.FAST_SELECTORS¶
The system attribute name and type indexed by the query attribute name for attributes that are expected to change every step of a simulation.
- pydft_qmmm.system.selection_utils.SLOW_SELECTORS¶
The system attribute name and type indexed by the query attribute name for attributes that are not expected to change every step of a simulation.
- pydft_qmmm.system.selection_utils.SELECT_KEYWORDS¶
The list of other keywords over which the keyword takes precedence and a function applying the keyword indexed by the keyword.
- pydft_qmmm.system.selection_utils.FAST_VARIABLES¶
The system attribute name and a column index indexed by variable name for variables that are expected to change every step of a simulation.
- pydft_qmmm.system.selection_utils.SLOW_VARIABLES¶
The system attribute name and a column index indexed by variable name for variables that are not expected to change every step of a simulation.
- pydft_qmmm.system.selection_utils.OPERATORS¶
The list of other operators over which the operator takes precedence and a function applying the operator indexed by the operator’s symbol.
- pydft_qmmm.system.selection_utils.FUNCTIONS¶
Functions indexed by their possible names in the query.
- pydft_qmmm.system.selection_utils.SELECTORS¶
The system attribute name and type indexed by the query attribute name for all attributes.
- pydft_qmmm.system.selection_utils.VARIABLES¶
The system attribute name and a column index indexed by variable name for all variables.
- pydft_qmmm.system.selection_utils.FAST_KEYWORDS¶
The system attribute name indexed by variable name or query attribute name for variables or selectors that are expected to change every step of a simulation.
- pydft_qmmm.system.selection_utils.SLOW_KEYWORDS¶
The system attribute name indexed by variable name or query attribute name for variables or selectors that are not expected to change every step of a simulation.
- pydft_qmmm.system.selection_utils.MATH_KEYWORDS¶
A set of variable names, operator symbols, and function names.
- pydft_qmmm.system.selection_utils.KEYWORDS¶
A set of selection keywords and math keywords.
Functions
|
Decompose an atom selection query into meaningful components. |
|
Evaluate a part of an atom selection query. |
|
Evaluate strings corresponding to a mathematical expression. |
|
Interpret a line of atom selection query language. |
|
Determine if a string is a numerical value. |
|
Find the slice of a query within parentheses. |
- pydft_qmmm.system.selection_utils.decompose(text)[source]¶
Decompose an atom selection query into meaningful components.
- pydft_qmmm.system.selection_utils.evaluate(text, system)[source]¶
Evaluate a part of an atom selection query.
- pydft_qmmm.system.selection_utils.evaluate_math(line, system)[source]¶
Evaluate strings corresponding to a mathematical expression.
- pydft_qmmm.system.selection_utils.interpret(line, system)[source]¶
Interpret a line of atom selection query language.
This has been written to follow VMD selection language.
- pydft_qmmm.system.selection_utils.isvalue(text)[source]¶
Determine if a string is a numerical value.