Skip to content

Commit 5c50cb8

Browse files
committed
Bugfix
1 parent 22a62fd commit 5c50cb8

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
@@ -400,10 +400,10 @@ def set_phonon_coefficients(self, displacement=None, coupling=None):
400400
"set_phonon_coefficients: provide at least either displacement or coupling"
401401
)
402402

403-
if displacement != None:
403+
if displacement is not None:
404404
set_a_ph(np.array([displacement], order="F"))
405405

406-
if coupling != None:
406+
if coupling is not None:
407407
if np.shape(copuling) == (aux_norb,):
408408
coupling = np.array(np.diag(coupling), order="F")
409409
elif np.shape(copuling) != (aux_norb, aux_norb):

0 commit comments

Comments
 (0)