Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
wxj6000 committed May 10, 2024
1 parent b82ded3 commit 91612bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gpu4pyscf/solvent/grad/pcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def get_dD_dS(surface, dF, with_S=True, with_D=False, stream=None):
ctypes.c_int(n)
)
if err != 0:
raise RuntimeError(f'Failed in generating PCM dD and dS matrices.')
raise RuntimeError('Failed in generating PCM dD and dS matrices.')

dSii_dF = -charge_exp * (2.0/PI)**0.5 / switch_fun**2
dSii = cupy.expand_dims(dSii_dF, axis=(1,2)) * dF
Expand Down
2 changes: 1 addition & 1 deletion gpu4pyscf/solvent/pcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def get_D_S(surface, with_S=True, with_D=False, stream=None):
ctypes.c_int(n)
)
if err != 0:
raise RuntimeError(f'Failed in generating PCM D and S matrices.')
raise RuntimeError('Failed in generating PCM D and S matrices.')
return D, S

class PCM(lib.StreamObject):
Expand Down

0 comments on commit 91612bd

Please sign in to comment.