## geometry_mismatches()


Where the graph and the geometry disagree, atom i on atom i.


Usage

``` python
geometry_mismatches(
    gra,
    geo,
)
```


Bonds are perceived from covalent radii as [from_geometry](from_geometry.md#protomol.from_geometry) perceives them, and each determined LS's parity is read with [from_geometry](from_geometry.md#protomol.from_geometry)'s readers. An LS the coordinates don't decide (a flat centre, a double bond twisted by about 90°) is not a mismatch, and neither is an undetermined LS.

A reaction graph's geometry is its TS's: the bonds that neither break nor form are compared, the breaking and forming bonds must be partial (`reacting_bonds`), and the LS that don't change and the determined `ts` slots are read, a slot on its listed neighbours (P69). An end point is checked on its side: `geometry_mismatches(products(ts), geo)`.

``` python
>>> from protomol import embed, examples, from_smiles
>>> gra = examples.species()
>>> geometry_mismatches(gra, embed(gra))
```

GeometryMismatches(missing_bonds=(), extra_bonds=(), reacting_bonds=(), stereo=())

``` python
>>> bool(geometry_mismatches(gra, embed(gra)))
```

False

``` python
>>> geometry_mismatches(gra, embed(from_smiles(r"C[C@H](O)/C=C/C"))).stereo
```

(1,)


## Raises


`GraphError`  
If the geometry's symbols differ from the graph's.

`NotImplementedError`  
For an LS kind the readers don't read (only [Tetrahedral](Tetrahedral.md#protomol.Tetrahedral), [TrigonalBipyramidal](TrigonalBipyramidal.md#protomol.TrigonalBipyramidal), [PlanarBond](PlanarBond.md#protomol.PlanarBond) and [AtropBond](AtropBond.md#protomol.AtropBond) are read).
