Skip to content

Commit

Permalink
flake8 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebystrom committed Apr 23, 2024
1 parent 04a0632 commit b3fc429
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ciderpress/analyzers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


def recursive_remove_none(obj):
if type(obj) == dict:
if isinstance(obj, dict):
return {k: recursive_remove_none(v) for k, v in obj.items() if v is not None}
else:
return obj
Expand Down
4 changes: 2 additions & 2 deletions ciderpress/dft/plans.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ def __init__(self, settings, nspin, alpha0, lambd, nalpha, fit_metric="ovlp"):
self.alpha_norms = (np.pi / (2 * self.alphas)) ** -0.75
prod = self.alphas * self.alphas[:, None]
sum = self.alphas + self.alphas[:, None]
### coul = ( alpha(r) | 1/(r-r') | beta(r') )
### coul = 4 * np.sqrt(2) * np.pi / prod**0.25 / sum**0.5
# coul = ( alpha(r) | 1/(r-r') | beta(r') )
# coul = 4 * np.sqrt(2) * np.pi / prod**0.25 / sum**0.5
# coul = ( alpha(r) | 1 / r | beta(r) )
coul = 4 * np.sqrt(2 / np.pi) * prod**0.75 / sum
LJ = cholesky(coul, lower=True)
Expand Down

0 comments on commit b3fc429

Please sign in to comment.