Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore/docstrings #176

Merged
merged 2 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/py/mat3ra/made/tools/build/interface/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@


class InterfaceConfiguration(BaseModel, InMemoryEntity):
"""
Configuration for an interface between two slabs.

Args:
film_configuration (SlabConfiguration): The configuration of the film slab.
substrate_configuration (SlabConfiguration): The configuration of the substrate slab.
film_termination (Termination): The termination of the film.
substrate_termination (Termination): The termination of the substrate.
distance_z (float): The distance between the film and the substrate in Angstroms.
vacuum (float): The vacuum thickness, in Angstroms.
"""

film_configuration: SlabConfiguration
substrate_configuration: SlabConfiguration
film_termination: Termination
Expand All @@ -36,6 +48,17 @@ def _json(self):


class TwistedInterfaceConfiguration(BaseConfiguration):
"""
Configuration for creating a twisted interface between two slabs with specified twist angle.

Args:
film (Material): The film material.
substrate (Material): The substrate material.
twist_angle (float): Twist angle in degrees.
distance_z (float): Vertical distance between layers in Angstroms.
vacuum (float): Vacuum thickness, in Angstroms.
"""

film: Material
substrate: Optional[Material] = None
twist_angle: float = 0.0
Expand Down
9 changes: 9 additions & 0 deletions src/py/mat3ra/made/tools/build/perturbation/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@


class PerturbationConfiguration(BaseModel, InMemoryEntity):
"""
Configuration for a geometrical perturbation.

Args:
material (Material): The Material object.
perturbation_function_holder (PerturbationFunctionHolder): The perturbation function holder.
use_cartesian_coordinates (bool): Whether to use cartesian coordinates
"""

material: Material
perturbation_function_holder: Union[
SineWavePerturbationFunctionHolder, PerturbationFunctionHolder
Expand Down
Loading