Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/feature/SOF-7426' i…
Browse files Browse the repository at this point in the history
…nto feature/SOF-7426
  • Loading branch information
VsevolodX committed Sep 13, 2024
2 parents 549bea1 + ee5a5ae commit ceb8268
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/py/mat3ra/made/tools/build/interface/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from mat3ra.made.material import Material
from ...calculate import calculate_film_substrate_interaction_metric
from ...modify import displace_interface
from ...modify import displace_interface_part
from ...analyze import calculate_on_xy_grid
from .builders import (
SimpleInterfaceBuilder,
Expand Down Expand Up @@ -43,7 +43,7 @@ def get_optimal_film_displacement(
):
x_values, y_values, results_matrix = calculate_on_xy_grid(
material,
modifier=displace_interface,
modifier=displace_interface_part,
modifier_parameters={},
calculator=calculator,
calculator_parameters={"shadowing_radius": 2.5, "metric_function": get_sum_of_inverse_distances_squared},
Expand Down
2 changes: 1 addition & 1 deletion src/py/mat3ra/made/tools/modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def rotate_material(material: Material, axis: List[int], angle: float) -> Materi
return Material(from_ase(atoms))


def displace_interface(
def displace_interface_part(
interface: Material,
displacement: List[float],
label: InterfacePartsEnum = InterfacePartsEnum.FILM,
Expand Down

0 comments on commit ceb8268

Please sign in to comment.