Skip to content

Commit

Permalink
fix import issue with gpaw
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebystrom committed Jul 2, 2024
1 parent 0231f63 commit 22cc76c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ciderpress/gpaw/xc_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from gpaw import GPAW
from gpaw.calculator import GPAW as GPAWOld
from gpaw.new.ase_interface import ASECalculator
from gpaw.utilities import unpack
from gpaw.utilities import unpack_hermitian
from gpaw.xc import XC
from gpaw.xc.kernel import XCNull

Expand Down Expand Up @@ -143,7 +143,7 @@ def vxc(gs, xc=None, coredensity=True, n1=0, n2=0):
xc.calculate_paw_correction(
pawdata, D_sp, dvxc_sp, a=a, addcoredensity=coredensity
)
dvxc_asii[a] = [unpack(dvxc_p) for dvxc_p in dvxc_sp]
dvxc_asii[a] = [unpack_hermitian(dvxc_p) for dvxc_p in dvxc_sp]
if thisisatest:
dvxc_asii[a] = [gs.setups[a].dO_ii]

Expand Down Expand Up @@ -227,7 +227,7 @@ def vxc_mat(gs, xc=None, coredensity=True, n1=0, n2=0):
xc.calculate_paw_correction(
pawdata, D_sp, dvxc_sp, a=a, addcoredensity=coredensity
)
dvxc_asii[a] = [unpack(dvxc_p) for dvxc_p in dvxc_sp]
dvxc_asii[a] = [unpack_hermitian(dvxc_p) for dvxc_p in dvxc_sp]
if thisisatest:
dvxc_asii[a] = [gs.setups[a].dO_ii]

Expand Down

0 comments on commit 22cc76c

Please sign in to comment.