Skip to main content

IllDefinedParityError

A stereocenter whose parity the coordinates don’t define.

Usage

Source

IllDefinedParityError()

Examples

    >>> import amchi
    >>> from types import SimpleNamespace
    >>> # CHFClBr with the four substituents in one plane
    >>> flat = SimpleNamespace(
    ...     symbols=["C", "H", "F", "Cl", "Br"],
    ...     coordinates=[[0, 0, 0], [1, 0, 0], [0, 1, 0], [-1, 0, 0], [0, -1, 0]],
    ... )
    >>> amchi.from_geometry(flat)  # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
    ...
amchi._types.IllDefinedParityError: ...