Skip to content

Commit e4aa2c3

Browse files
committed
Merge branch 'phonons_and_1bdm' of github.com:EDIpack/EDIpack2py into phonons_and_1bdm
2 parents 6b0d58b + 51182be commit e4aa2c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/edipack2py/func_aux_funx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,11 @@ def set_phonon_coefficients(self, displacement=None, coupling=None):
405405

406406
if coupling is not None:
407407
if np.shape(coupling) == (aux_norb,):
408-
coupling = np.array(np.diag(coupling), order="F")
408+
coupling = np.diag(coupling)
409409
elif np.shape(coupling) != (aux_norb, aux_norb):
410410
raise ValueError(
411411
"set_phonon_coefficients: coupling shape is (Norb) or (Norb,Norb)"
412412
)
413-
set_g_ph(coupling)
413+
set_g_ph(np.array(coupling, order="F"))
414414

415415
return

0 commit comments

Comments
 (0)