-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from Exabyte-io/feature/SOF-7413
feature/SOF 7413
- Loading branch information
Showing
15 changed files
with
673 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from typing import Union | ||
|
||
from mat3ra.made.material import Material | ||
from .configuration import PassivationConfiguration | ||
from .builders import ( | ||
SurfacePassivationBuilder, | ||
CoordinationBasedPassivationBuilder, | ||
SurfacePassivationBuilderParameters, | ||
) | ||
|
||
|
||
def create_passivation( | ||
configuration: PassivationConfiguration, | ||
builder: Union[SurfacePassivationBuilder, CoordinationBasedPassivationBuilder, None] = None, | ||
) -> Material: | ||
if builder is None: | ||
builder = SurfacePassivationBuilder(build_parameters=SurfacePassivationBuilderParameters()) | ||
return builder.get_material(configuration) |
Oops, something went wrong.