Capturing energy components as return structure in SAPT calculations in Python

Hello all - complete newbie here. I am loving being able to call psi4 from python. I cannot locate documentation for the return value of the calls. The examples, obviously, return energy. I would like to capture the SAPT components without having to parse output files.

Thank you.

To access them in a Python script, use the get_variable function with the name of the psi variable you want. You can see the psi variables available to a module by clicking on the “Psi variables” link at the top of a module’s description in the documentation.

1 Like

Thank you, fantastic.



Ditto, this all works and it’s great. Thank you.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.