Skip to content

Commit

Permalink
Fix small errors according to lint
Browse files Browse the repository at this point in the history
  • Loading branch information
henryw7 committed Aug 30, 2024
1 parent 65f936d commit 2e91874
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gpu4pyscf/scf/hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

import copy
import ctypes
import sys
import h5py
import numpy as np
import cupy
import scipy.linalg
Expand Down Expand Up @@ -450,7 +452,7 @@ def _kernel(mf, conv_tol=1e-10, conv_tol_grad=None,
local_variables = locals()
for key in local_variables:
value = local_variables[key]
if (type(value) == cupy.ndarray):
if (type(value) is cupy.ndarray):
local_variables[key] = cupy.asnumpy(value)
mf.dump_chk(local_variables)

Expand Down

0 comments on commit 2e91874

Please sign in to comment.