Skip to content

Commit

Permalink
calculate_displacement -> calc_displacement
Browse files Browse the repository at this point in the history
  • Loading branch information
wolearyc committed Aug 27, 2024
1 parent 0b9bde9 commit 7d596d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ramannoodle/polarizability/interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from ramannoodle.globals import ANSICOLORS
from ramannoodle.polarizability.abstract import PolarizabilityModel
from ramannoodle.structure.structure_utils import calculate_displacement
from ramannoodle.structure.structure_utils import calc_displacement
from ramannoodle.structure.symmetry_utils import (
is_orthogonal_to_all,
is_collinear_with_all,
Expand Down Expand Up @@ -200,7 +200,7 @@ def calc_polarizability(
delta_polarizability: NDArray[np.float64] = np.zeros((3, 3))
try:
cart_displacement = self._ref_structure.get_cart_displacement(
calculate_displacement(positions, self._ref_structure.positions)
calc_displacement(positions, self._ref_structure.positions)
)

for basis_vector, interpolation, mask in zip(
Expand Down Expand Up @@ -536,7 +536,7 @@ def _read_dof(
polarizability = np.zeros((3, 3))

try:
displacement = calculate_displacement(
displacement = calc_displacement(
positions,
self._ref_structure.positions,
)
Expand Down
4 changes: 2 additions & 2 deletions ramannoodle/structure/reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
displace_positions,
transform_positions,
apply_pbc_displacement,
calculate_displacement,
calc_displacement,
)
from ramannoodle.globals import ATOM_SYMBOLS
from ramannoodle.structure import symmetry_utils
Expand Down Expand Up @@ -205,7 +205,7 @@ def get_equivalent_displacements(
ref_positions, rotation, translation
)
candidate_positions = permutation_matrix @ candidate_positions
candidate_displacement = calculate_displacement(
candidate_displacement = calc_displacement(
candidate_positions, self._positions
)

Expand Down
2 changes: 1 addition & 1 deletion ramannoodle/structure/structure_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def transform_positions(
return displace_positions(rotated, translation)


def calculate_displacement(
def calc_displacement(
positions_1: NDArray[np.float64],
positions_2: NDArray[np.float64],
) -> NDArray[np.float64]:
Expand Down

0 comments on commit 7d596d5

Please sign in to comment.