Skip to content

Commit

Permalink
update: add top level function to create passivation
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Sep 9, 2024
1 parent 4b04911 commit 13d8538
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/py/mat3ra/made/tools/build/passivation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from typing import Union

from mat3ra.made.material import Material
from .configuration import PassivationConfiguration
from .builders import PassivationBuilder, SurfacePassivationBuilder, UndercoordinationPassivationBuilder


def create_passivation(
configuration: PassivationConfiguration,
builder: Union[SurfacePassivationBuilder, UndercoordinationPassivationBuilder] = SurfacePassivationBuilder(),
) -> Material:
return builder.get_material(configuration)

0 comments on commit 13d8538

Please sign in to comment.