OptionsState¶
- class psi4.driver.p4util.OptionsState(*largs)[source]¶
Bases:
object
Store multiple
OptionState()
objects. Use in driver functions to collect several keywords before altering them, then restore them before function return.Examples
>>> optstash = OptionsState( ['DF_BASIS_SCF'], ['SCF_TYPE'], ['SCF', 'REFERENCE'])
>>> print(optstash)
>>> optstash.restore()
Methods Summary
add_option
(item)Store info for another keyword, item.
restore
()Restore value and has_changed status of each keyword to saved condition.
Methods Documentation