TestComparisonError

exception psi4.driver.TestComparisonError(msg)[source]

Error called when a compare_values() or other comparison function fails.

Error message msg directed both to standard output stream and to outfile.

Parameters:

msg (str) – Human readable string describing the exception.

message

Human readable string describing the exception.

Type:

str

Example

>>> psi4.compare_values(2, 3, 2, "asdf")
asdf..................................................................................FAILED
psi4.driver.p4util.exceptions.TestComparisonError:  asdf: computed value (3.0000) does not match (2.0000) to atol=0.01 by difference (1.0000).
!----------------------------------------------------------------------------------!
!                                                                                  !
!         asdf: computed value (3.0000) does not match (2.0000) to atol=0.01 by    !
!     difference (1.0000).                                                         !
!                                                                                  !
!----------------------------------------------------------------------------------!