Emmet-Core¶
The core module defines the data models for the Materials API (MAPI):
CrystalSystem
¶
Bases: ValueEnum
The crystal system of the lattice
Source code in emmet/core/symmetry.py
19 20 21 22 23 24 25 26 27 28 29 30 |
|
PointGroupData
¶
Bases: BaseModel
Defines symmetry for a molecule document
Source code in emmet/core/symmetry.py
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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
|
SymmetryData
¶
Bases: BaseModel
Defines a symmetry data set for materials documents
Source code in emmet/core/symmetry.py
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
|
Core definition of Structure and Molecule metadata.
MoleculeMetadata
¶
Bases: EmmetBaseModel
Mix-in class for molecule metadata.
Source code in emmet/core/structure.py
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 |
|
from_composition(comp, fields=None, **kwargs)
classmethod
¶
Create a MoleculeMetadata model from a composition.
Parameters¶
comp : .Composition A pymatgen composition. fields : list of str or None Composition fields to include. **kwargs Keyword arguments that are passed to the model constructor.
Returns¶
T A molecule metadata model.
Source code in emmet/core/structure.py
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 |
|
StructureMetadata
¶
Bases: EmmetBaseModel
Mix-in class for structure metadata.
Source code in emmet/core/structure.py
24 25 26 27 28 29 30 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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
|
Core definition of a Materials Document
CoreMoleculeDoc
¶
Bases: MoleculeMetadata
Definition for a core Molecule Document
Source code in emmet/core/material.py
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
|
from_molecule(molecule, molecule_id, **kwargs)
classmethod
¶
Builds a molecule document using the minimal amount of information
Source code in emmet/core/material.py
183 184 185 186 187 188 189 190 191 192 193 |
|
MaterialsDoc
¶
Bases: StructureMetadata
Definition for a core Materials Document
Source code in emmet/core/material.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
|
from_structure(structure, material_id, **kwargs)
classmethod
¶
Builds a materials document using the minimal amount of information
Source code in emmet/core/material.py
104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
|
PropertyOrigin
¶
Bases: BaseModel
Provenance document for the origin of properties in a material document
Source code in emmet/core/material.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
Core definition of a Thermo Document
DecompositionProduct
¶
Bases: BaseModel
Entry metadata for a decomposition process
Source code in emmet/core/thermo.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
PhaseDiagramDoc
¶
Bases: BaseModel
A phase diagram document
Source code in emmet/core/thermo.py
298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
ThermoDoc
¶
Bases: PropertyDoc
A thermo entry document
Source code in emmet/core/thermo.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 |
|
construct_phase_diagram(entries)
staticmethod
¶
Efficienty construct a phase diagram using only the lowest entries at every composition represented in the entry data passed.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
entries
|
List[ComputedStructureEntry]
|
List of corrected pymatgen entry objects. |
required |
Returns:
Name | Type | Description |
---|---|---|
PhaseDiagram |
PhaseDiagram
|
Pymatgen PhaseDiagram object |
Source code in emmet/core/thermo.py
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 |
|
from_entries(entries, thermo_type, phase_diagram=None, use_max_chemsys=False, **kwargs)
classmethod
¶
Produce a list of ThermoDocs from a list of Entry objects
Parameters:
Name | Type | Description | Default |
---|---|---|---|
entries
|
List[Union[ComputedEntry, ComputedStructureEntry]]
|
List of Entry objects |
required |
thermo_type
|
Union[ThermoType, RunType]
|
Thermo type |
required |
phase_diagram
|
Optional[PhaseDiagram]
|
Already built phase diagram. Defaults to None. |
None
|
use_max_chemsys
|
bool
|
Whether to only produce thermo docs for materials that match the largest chemsys represented in the list. Defaults to False. |
False
|
Returns:
Type | Description |
---|---|
List[ThermoDoc]: List of built thermo doc objects. |
Source code in emmet/core/thermo.py
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 |
|
Core definition of a Provenance Document
Author
¶
Bases: BaseModel
Author information
Source code in emmet/core/provenance.py
27 28 29 30 31 32 33 |
|
Database
¶
Bases: ValueEnum
Database identifiers for provenance IDs
Source code in emmet/core/provenance.py
17 18 19 20 21 22 23 24 |
|
History
¶
Bases: BaseModel
History of the material provenance
Source code in emmet/core/provenance.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
ProvenanceDoc
¶
Bases: PropertyDoc
A provenance property block
Source code in emmet/core/provenance.py
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
|
from_SNLs(material_id, structure, snls, **kwargs)
classmethod
¶
Converts legacy Pymatgen SNLs into a single provenance document
Source code in emmet/core/provenance.py
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
|
SNLAbout
¶
Bases: BaseModel
A data dictionary defining extra fields in a SNL
Source code in emmet/core/provenance.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
SNLDict
¶
Bases: BaseModel
Pydantic validated dictionary for SNL
Source code in emmet/core/provenance.py
90 91 92 93 94 95 |
|
Core definition for Polar property Document
BornEffectiveCharges
¶
Bases: BaseModel
A block for the Born effective charges
Source code in emmet/core/polar.py
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
|
DielectricDoc
¶
Bases: PropertyDoc
A dielectric property block
Source code in emmet/core/polar.py
22 23 24 25 26 27 28 29 30 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 62 63 64 65 66 67 68 69 70 71 72 |
|
IRDielectric
¶
Bases: BaseModel
A block for the pymatgen IRDielectricTensor object
Source code in emmet/core/polar.py
163 164 165 166 167 168 169 170 |
|
PiezoelectricDoc
¶
Bases: PropertyDoc
A dielectric package block
Source code in emmet/core/polar.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
|