invert()
The other configuration. An undetermined LS is returned unchanged.
Usage
invert(ls)A chiral LS (parity ±1) gives its mirror image, by flipping the parity. PlanarBond swaps c and d (cis ⇄ trans). SquarePlanar is returned unchanged: it is its own mirror image, and it has three configurations, not two (isomers lists them).
>>> invert(PlanarBond(atoms=(1, 2, 3, 4, 5, 6), parity=0)).atoms(1, 2, 3, 4, 6, 5)