AtomicSystem.from_cod#
- classmethod AtomicSystem.from_cod(cod_id=None)#
Load a structure from the Crystallography Open Database.
- Parameters:
- cod_idint or str, optional
COD entry to download. Given one, the structure is fetched straight away; omitted, an interactive explorer opens instead. Pass the identifier in a script: the explorer cannot be replayed, and a script that names its structure says where its model came from.
- Returns:
- AtomicSystem or None
The structure, or None if the explorer was cancelled.
Examples
>>> calcite = AtomicSystem.from_cod(9016705) # reproducible >>> system = AtomicSystem.from_cod() # browse instead