Skip to content

Commit de6ba36

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e48eb70 commit de6ba36

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

src/denspart/__main__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ def parse_args(args=None):
9999
"--gtol",
100100
type=float,
101101
default=1e-8,
102-
help="gtol convergence criterion for SciPy's trust-constr minimizer. "
103-
"[default=%(default)s]",
102+
help="gtol convergence criterion for SciPy's trust-constr minimizer. [default=%(default)s]",
104103
)
105104
parser.add_argument(
106105
"-m",

src/denspart/adapters/adf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def write_output(fn_npz, data):
202202
data["density"] * data["points"][:, i], data["weights"]
203203
)
204204
print(f"Dipole moment {char} [a.u.]: {dipole_moment:10.3f}")
205-
print(f"Dipole moment {char} [Debye]: {dipole_moment/debye:10.3f}")
205+
print(f"Dipole moment {char} [Debye]: {dipole_moment / debye:10.3f}")
206206
nelec = np.dot(data["density"], data["weights"])
207207
charge = data["atnums"].sum() - nelec
208208
print(f"Number of electrons: {nelec:10.3f}")

src/denspart/adapters/horton3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def _compute_stuff(iodata, points, gradient, orbitals, chunk_size):
149149
if one_rdm is None:
150150
if iodata.mo is None:
151151
raise ValueError(
152-
"The input file lacks wavefunction data with which " "the density can be computed."
152+
"The input file lacks wavefunction data with which the density can be computed."
153153
)
154154
coeffs, occs = iodata.mo.coeffs, iodata.mo.occs
155155
one_rdm = np.dot(coeffs * occs, coeffs.T)
@@ -278,7 +278,7 @@ def parse_args(args=None):
278278
"--chunk-size",
279279
type=int,
280280
default=10000,
281-
help="Number points on which the density is computed in one pass. " "[default=%(default)s]",
281+
help="Number points on which the density is computed in one pass. [default=%(default)s]",
282282
)
283283
parser.add_argument(
284284
"-s",

src/denspart/properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
from .cache import compute_cached
2424

25-
__all__ = ["compute_radial_moments", "compute_multipole_moments", "spherical_harmonics"]
25+
__all__ = ["compute_multipole_moments", "compute_radial_moments", "spherical_harmonics"]
2626

2727

2828
def safe_ratio(density, pro, density_cutoff=1e-15):

src/denspart/vh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import numpy as np
2929
from scipy.optimize import SR1, Bounds, minimize
3030

31-
__all__ = ["optimize_reduce_pro_model", "BasisFunction", "ProModel", "ekld"]
31+
__all__ = ["BasisFunction", "ProModel", "ekld", "optimize_reduce_pro_model"]
3232

3333

3434
def optimize_reduce_pro_model(

0 commit comments

Comments
 (0)