1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 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
|
from pydantic import BaseModel, Field
from typing import Optional
class SubstratesDoc(BaseModel):
"""
Possible growth substrates for a given material.
"""
sub_form: Optional[str] = Field(
None,
description="Reduced formula of the substrate.",
)
sub_id: Optional[str] = Field(
None,
description="Materials Project ID of the substrate material. This comes in the form: mp-******.",
)
film_orient: Optional[str] = Field(
None,
description="Surface orientation of the film material.",
)
area: Optional[float] = Field(
None,
description="Minimum coincident interface area in Ų.",
)
energy: Optional[float] = Field(
None,
description="Elastic energy in meV.",
)
film_id: Optional[str] = Field(
None,
description="The Materials Project ID of the film material. This comes in the form: mp-******.",
)
norients: Optional[int] = Field(
None,
description="Number of possible surface orientations for the substrate.",
alias="_norients",
)
orient: Optional[str] = Field(
None,
description="Surface orientation of the substrate material.",
)
|