Skip to content

Commit

Permalink
Final simple fixes ruff (#41)
Browse files Browse the repository at this point in the history
These are the final trivial manual fixes resulting from ruff check.
All the 40 remaining ones require more attention.
  • Loading branch information
mcocdawc authored Dec 4, 2024
1 parent f71bcea commit b341f0e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion example/molbe_ppp.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
fobj = fragpart(be_type="be2", mol=mol, valence_basis="sto-3g", frozen_core=True)

# Initialize BE
mybe = BE(mg, fobj, lo_method="iao")
mybe = BE(mf, fobj, lo_method="iao")

# Density matching with CCSD as local solver
mybe.optimize(solver="CCSD")
6 changes: 3 additions & 3 deletions src/quemb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import quemb.kbe
import quemb.molbe
import quemb.shared
from quemb import kbe, molbe, shared

__all__ = ["kbe", "molbe", "shared"]
4 changes: 2 additions & 2 deletions tests/molbe_octane_get_rdms_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ def test_rdm():
# Perform BE density matching.
mybe.optimize(solver="CCSD", nproc=1, ompnum=1)

rdm1_ao, rdm2_ao = mybe.rdm1_fullbasis(return_ao=True)
rdm1_ao, rdm2_ao = mybe.rdm1_fullbasis(return_ao=True) # noqa: F841

assert np.isclose(mybe.ebe_tot, -310.3311676424482)

rdm1, rdm2 = mybe.compute_energy_full(approx_cumulant=True, return_rdm=True)
rdm1, rdm2 = mybe.compute_energy_full(approx_cumulant=True, return_rdm=True) # noqa: F841

assert np.isclose(mybe.ebe_tot, -310.3311676424482)

Expand Down
2 changes: 1 addition & 1 deletion tests/molbe_oneshot_rbe_qmmm-fromchk_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_rbe_qmmm_fromchk():

# returns BE energy with CCSD solver from RHF reference,
# using checkfile from converged RHF
be_energy = be2puffin(
be_energy = be2puffin( # noqa: F841
structure, # the QM region XYZ geometry
"sto-3g", # the chosen basis set
pts_and_charges=[coords, charges], # the loaded hamiltonian
Expand Down

0 comments on commit b341f0e

Please sign in to comment.