chemcoord.zmat_functions.TestOperators
- class chemcoord.zmat_functions.TestOperators(test_operators, cls=None)[source]
Switch the validity testing of zmatrices resulting from operators.
The following examples is done with
+it is assumed, that addingzmat_1andzmat_2leads to a zmatrix with an invalid reference:with TestOperators(True): zmat_1 + zmat_2 # Raises InvalidReference Exception
Since it is on by default, the contextmanager is mostly relevant for switching the validity testing off when doing a difference.
Methods
__init__(test_operators[, cls])