Skip to content

Commit

Permalink
update: fix imports and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Dec 8, 2024
1 parent d167d52 commit 6fcd6ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/py/mat3ra/made/tools/build/passivation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
SurfacePassivationBuilderParameters,
CoordinationBasedPassivationBuilderParameters,
)
from ...analyze.coordination import MaterialWithCrystalSites


def create_passivation(
Expand All @@ -33,4 +34,5 @@ def get_unique_coordination_numbers(
Returns:
set: The unique coordination numbers.
"""
return coordination.get_unique_coordination_numbers(material=configuration.slab, cutoff=cutoff)
material_with_crystal_sites = MaterialWithCrystalSites.from_material(configuration.slab)
return coordination.get_unique_coordination_numbers(material=material_with_crystal_sites, cutoff=cutoff)
2 changes: 1 addition & 1 deletion src/py/mat3ra/made/tools/build/passivation/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def create_passivated_material(self, configuration: PassivationConfiguration) ->
material_with_crystal_sites = MaterialWithCrystalSites.from_material(material)

undercoordinated_atoms_indices = coordination.get_undercoordinated_atom_indices(
material,
material_with_crystal_sites,
cutoff=self.build_parameters.shadowing_radius,
coordination_threshold=self.build_parameters.coordination_threshold,
)
Expand Down

0 comments on commit 6fcd6ff

Please sign in to comment.