Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-24 committed Oct 19, 2023
1 parent 0ac3508 commit 413611a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
TWO_POINTS_STENCIL = [[-1, -.5], [1, .5]] # two-points, centered


class PhonopyPhononsAnalyzer:
class PhononsAnalyzer:
def __init__(self, phonon: phonopy.Phonopy):
self.phonotopy = phonon
self.supercell = phonon.supercell
Expand Down Expand Up @@ -50,12 +50,12 @@ def from_phonopy(
phonopy_yaml: str = 'phonopy_disp.yaml',
force_constants_filename: str = 'force_constants.hdf5',
born_filename: Optional[str] = None
) -> 'PhonopyPhononsAnalyzer':
) -> 'PhononsAnalyzer':
"""
Use the Python interface of Phonopy, see https://phonopy.github.io/phonopy/phonopy-module.html.
"""

return PhonopyPhononsAnalyzer(phonopy.load(
return PhononsAnalyzer(phonopy.load(
phonopy_yaml=phonopy_yaml,
force_constants_filename=force_constants_filename,
born_filename=born_filename,
Expand Down
4 changes: 2 additions & 2 deletions phonopy_vibspec/scripts/displaced_geometries.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from typing import List

from phonopy_vibspec.phonopy_phonons_analyzer import PhonopyPhononsAnalyzer
from phonopy_vibspec.phonons_analyzer import PhononsAnalyzer
from phonopy_vibspec.scripts import add_common_args


Expand Down Expand Up @@ -37,7 +37,7 @@ def main():

args = parser.parse_args()

phonons = PhonopyPhononsAnalyzer.from_phonopy(
phonons = PhononsAnalyzer.from_phonopy(
phonopy_yaml=args.phonopy,
force_constants_filename=args.fc,
)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_vibspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import pytest
import yaml

from phonopy_vibspec.phonopy_phonons_analyzer import PhonopyPhononsAnalyzer, TWO_POINTS_STENCIL
from phonopy_vibspec.phonons_analyzer import PhononsAnalyzer, TWO_POINTS_STENCIL


def test_infrared_SiO2(context_SiO2):
phonons = PhonopyPhononsAnalyzer.from_phonopy(
phonons = PhononsAnalyzer.from_phonopy(
phonopy_yaml='phonopy_disp.yaml',
force_constants_filename='force_constants.hdf5',
born_filename='BORN'
Expand All @@ -31,7 +31,7 @@ def test_infrared_SiO2(context_SiO2):


def test_create_displaced_geometries_SiO2(context_SiO2, tmp_path):
phonons = PhonopyPhononsAnalyzer.from_phonopy(
phonons = PhononsAnalyzer.from_phonopy(
phonopy_yaml='phonopy_disp.yaml',
force_constants_filename='force_constants.hdf5',
born_filename='BORN'
Expand All @@ -52,7 +52,7 @@ def test_create_displaced_geometries_SiO2(context_SiO2, tmp_path):
def test_create_displaced_geometries_select_modes_SiO2(context_SiO2, tmp_path):
requested_modes = [3, 5, 6]

phonons = PhonopyPhononsAnalyzer.from_phonopy(
phonons = PhononsAnalyzer.from_phonopy(
phonopy_yaml='phonopy_disp.yaml',
force_constants_filename='force_constants.hdf5',
born_filename='BORN'
Expand Down

0 comments on commit 413611a

Please sign in to comment.