Skip to content

Commit 9f550b3

Browse files
authored
Fix: use direct import of full_3x3_to_voigt_6_index (#7042)
1 parent f833256 commit 9f550b3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

interfaces/ASE_interface/abacuslite/io/latestio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
SinglePointDFTCalculator
1313
)
1414
from ase.units import GPa
15-
from ase.constraints import full_3x3_to_voigt_6_stress
15+
from ase.stress import full_3x3_to_voigt_6_stress
1616

1717
# some output formats are not updated,
1818
# for these cases, we import from the legacyio module

interfaces/ASE_interface/abacuslite/io/legacyio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
SinglePointDFTCalculator
1313
)
1414
from ase.units import Ry, eV, GPa, bar
15-
from ase.constraints import full_3x3_to_voigt_6_stress
15+
from ase.stress import full_3x3_to_voigt_6_stress
1616
# from ase.utils import reader
1717

1818
__all__ = ['read_kpoints_from_running_log',

0 commit comments

Comments
 (0)