OptionState

class psi4.driver.p4util.OptionState(option, module=None)[source]

Bases: object

Store the state (value and changed status) of a single option.

Parameters:
  • option (str) – Name of read_options keyword. All caps.

  • module (Optional[str]) – Name of read_options module or None if global. All caps. If module given, the option value and has_changed value is stored for global, local to module, and used by module scopes. Otherwise (used for BASIS keywords), only global scope is stored.

Examples

>>> OptionState('E_CONVERGENCE', 'SCF')
>>> print(OptionState('DF_BASIS_MP2'))

Methods Summary

restore()

Restore value and has_changed status to saved condition.

Methods Documentation

restore()[source]

Restore value and has_changed status to saved condition.