jarvis¶
Convert an OPTIMADE structure, in the format of
StructureResource
to a JARVIS Atoms
object.
For more information on the NIST-JARVIS repository, see their website.
This conversion function relies on the jarvis-tools package.
Contributing author
This conversion function was contributed by Kamal Choudhary (@knc6).
JARVIS_NOT_FOUND = 'jarvis-tools package not found, cannot convert structure to a JARVIS Atoms. Visit https://github.com/usnistgov/jarvis'
module-attribute
¶
__all__ = ('get_jarvis_atoms')
module-attribute
¶
AdapterPackageNotFound
¶
Bases: OptimadeWarning
The package for an adapter cannot be found.
Source code in optimade/adapters/warnings.py
6 7 |
|
ConversionError
¶
Bases: Exception
Could not convert entry to format
Source code in optimade/adapters/exceptions.py
4 5 |
|
OptimadeStructure
¶
Bases: EntryResource
Representing a structure.
Source code in optimade/models/structures.py
1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 |
|
StructureFeatures
¶
Bases: Enum
Enumeration of structure_features values
Source code in optimade/models/structures.py
55 56 57 58 59 60 61 |
|
get_jarvis_atoms(optimade_structure)
¶
Get jarvis Atoms
from OPTIMADE structure.
Caution
Cannot handle partial occupancies.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
optimade_structure |
StructureResource
|
OPTIMADE structure. |
required |
Returns:
Type | Description |
---|---|
Atoms
|
A jarvis |
Source code in optimade/adapters/structures/jarvis.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|