From 92932847d6f3584cbea22010f8f13e7ded8647c2 Mon Sep 17 00:00:00 2001 From: Atsushi Togo Date: Thu, 5 Sep 2024 13:08:31 +0900 Subject: [PATCH] Fix test --- .github/workflows/phono3py-pytest-conda-mkl-phphmtblas.yml | 2 +- .github/workflows/phono3py-pytest-conda-mkl-v2.yml | 2 +- .github/workflows/phono3py-pytest-conda-mkl.yml | 2 +- .github/workflows/phono3py-pytest-conda-numpy2.yml | 2 +- .github/workflows/phono3py-pytest-conda-phphmtblas.yml | 2 +- .github/workflows/phono3py-pytest-conda.yml | 2 +- phono3py/api_phono3py.py | 2 +- test/cui/test_phono3py_load_script.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/phono3py-pytest-conda-mkl-phphmtblas.yml b/.github/workflows/phono3py-pytest-conda-mkl-phphmtblas.yml index f32a9b58..a262cdf6 100644 --- a/.github/workflows/phono3py-pytest-conda-mkl-phphmtblas.yml +++ b/.github/workflows/phono3py-pytest-conda-mkl-phphmtblas.yml @@ -35,7 +35,7 @@ jobs: - name: Install phonopy develop branch run: | conda activate test - git clone --depth 1 https://github.com/phonopy/phonopy.git + git clone https://github.com/phonopy/phonopy.git cd phonopy pip install -e . -vvv cd .. diff --git a/.github/workflows/phono3py-pytest-conda-mkl-v2.yml b/.github/workflows/phono3py-pytest-conda-mkl-v2.yml index 7a285923..a6d5c8d5 100644 --- a/.github/workflows/phono3py-pytest-conda-mkl-v2.yml +++ b/.github/workflows/phono3py-pytest-conda-mkl-v2.yml @@ -35,7 +35,7 @@ jobs: - name: Install phonopy develop branch run: | conda activate test - git clone --depth 1 https://github.com/phonopy/phonopy.git + git clone https://github.com/phonopy/phonopy.git cd phonopy pip install -e . -vvv cd .. diff --git a/.github/workflows/phono3py-pytest-conda-mkl.yml b/.github/workflows/phono3py-pytest-conda-mkl.yml index a9be299a..f42b8264 100644 --- a/.github/workflows/phono3py-pytest-conda-mkl.yml +++ b/.github/workflows/phono3py-pytest-conda-mkl.yml @@ -35,7 +35,7 @@ jobs: - name: Install phonopy develop branch run: | conda activate test - git clone --depth 1 https://github.com/phonopy/phonopy.git + git clone https://github.com/phonopy/phonopy.git cd phonopy pip install -e . -vvv cd .. diff --git a/.github/workflows/phono3py-pytest-conda-numpy2.yml b/.github/workflows/phono3py-pytest-conda-numpy2.yml index fdb106b2..6265efaf 100644 --- a/.github/workflows/phono3py-pytest-conda-numpy2.yml +++ b/.github/workflows/phono3py-pytest-conda-numpy2.yml @@ -35,7 +35,7 @@ jobs: - name: Install symfc develop branch run: | conda activate test - git clone --depth 1 https://github.com/symfc/symfc.git + git clone https://github.com/symfc/symfc.git cd symfc pip install -e . -vvv cd .. diff --git a/.github/workflows/phono3py-pytest-conda-phphmtblas.yml b/.github/workflows/phono3py-pytest-conda-phphmtblas.yml index 59f41d31..5c2dc672 100644 --- a/.github/workflows/phono3py-pytest-conda-phphmtblas.yml +++ b/.github/workflows/phono3py-pytest-conda-phphmtblas.yml @@ -35,7 +35,7 @@ jobs: - name: Install phonopy develop branch run: | conda activate test - git clone --depth 1 https://github.com/phonopy/phonopy.git + git clone https://github.com/phonopy/phonopy.git cd phonopy pip install -e . -vvv cd .. diff --git a/.github/workflows/phono3py-pytest-conda.yml b/.github/workflows/phono3py-pytest-conda.yml index ad620453..1df4515a 100644 --- a/.github/workflows/phono3py-pytest-conda.yml +++ b/.github/workflows/phono3py-pytest-conda.yml @@ -28,7 +28,7 @@ jobs: - name: Install phonopy develop branch run: | conda activate test - git clone --depth 1 https://github.com/phonopy/phonopy.git + git clone https://github.com/phonopy/phonopy.git cd phonopy pip install -e . -vvv cd .. diff --git a/phono3py/api_phono3py.py b/phono3py/api_phono3py.py index 9ded6132..b42d4a16 100644 --- a/phono3py/api_phono3py.py +++ b/phono3py/api_phono3py.py @@ -2252,7 +2252,7 @@ class Phono3py: verbose=self._log_level - 1 > 0, ) - def load_mlp(self, filename: str = "pypolymlp.mlp"): + def load_mlp(self, filename: str = "phono3py.pmlp"): """Load machine learning potential of pypolymlp.""" self._mlp = load_polymlp(filename=filename) diff --git a/test/cui/test_phono3py_load_script.py b/test/cui/test_phono3py_load_script.py index cd8a4d32..c3b751b1 100644 --- a/test/cui/test_phono3py_load_script.py +++ b/test/cui/test_phono3py_load_script.py @@ -142,7 +142,7 @@ def test_phono3py_load_with_pypolymlp_si(): file_path.unlink() argparse_control = _get_phono3py_load_args( - cwd / "phono3py.yaml", + cwd_called / "phono3py.yaml", fc_calculator="symfc", use_pypolymlp=True, )