From 92aa61da0c5495ad6f980ff088d476673e589e91 Mon Sep 17 00:00:00 2001 From: kirk0830 Date: Wed, 18 Mar 2026 21:13:09 +0800 Subject: [PATCH] Fix: use direct import of full_3x3_to_voigt_6_index --- interfaces/ASE_interface/abacuslite/io/latestio.py | 2 +- interfaces/ASE_interface/abacuslite/io/legacyio.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/ASE_interface/abacuslite/io/latestio.py b/interfaces/ASE_interface/abacuslite/io/latestio.py index 4ba04437652..57a38a44299 100644 --- a/interfaces/ASE_interface/abacuslite/io/latestio.py +++ b/interfaces/ASE_interface/abacuslite/io/latestio.py @@ -12,7 +12,7 @@ SinglePointDFTCalculator ) from ase.units import GPa -from ase.constraints import full_3x3_to_voigt_6_stress +from ase.stress import full_3x3_to_voigt_6_stress # some output formats are not updated, # for these cases, we import from the legacyio module diff --git a/interfaces/ASE_interface/abacuslite/io/legacyio.py b/interfaces/ASE_interface/abacuslite/io/legacyio.py index ce4a0aa49d7..9772a6363d3 100644 --- a/interfaces/ASE_interface/abacuslite/io/legacyio.py +++ b/interfaces/ASE_interface/abacuslite/io/legacyio.py @@ -12,7 +12,7 @@ SinglePointDFTCalculator ) from ase.units import Ry, eV, GPa, bar -from ase.constraints import full_3x3_to_voigt_6_stress +from ase.stress import full_3x3_to_voigt_6_stress # from ase.utils import reader __all__ = ['read_kpoints_from_running_log',