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 adding zmat_1 and zmat_2 leads to a zmatrix with an invalid reference:

with TestOperators(True):
    zmat_1 + zmat_2
    # Raises InvalidReference Exception