## from_xyz_block()


Parse a geometry from a single-frame xyz block.


Usage

``` python
from_xyz_block(
    xyz_block,
    *,
    charge,
    spin,
)
```


Atoms may be given by symbol (case-insensitive) or atomic number.


## Parameters


`xyz_block: str`  
The xyz block.

`charge: int`  
Total molecular charge.

`spin: int`  
Number of unpaired electrons.


## Returns


`Geometry`  
The parsed geometry.


## Raises


`XYZFormatError`  
If the block is empty, the atom count line is missing or does not match the number of atom lines, or an atom line cannot be parsed.
