Skip to content

Commit

Permalink
Another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rosecers committed Mar 17, 2024
1 parent 252991e commit 5121cee
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions anisoap/representations/ellipsoidal_density_projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,21 @@ def pairwise_ellip_expansion(
volume = 4.0 / 3.0 * np.pi * np.product(lengths)

length_norm = (
np.product(lengths * 2) * volume * (2.0 * np.pi) ** (3.0 / 2.0)
np.product(lengths) * volume * (2.0 * np.pi) ** (3.0 / 2.0)
) ** -1.0

(
precision,
center,
constant
constant,
) = radial_basis.compute_gaussian_parameters(r_ij, lengths, rot)

moments = np.exp(-0.5 * constant) * length_norm * compute_moments_inefficient_implementation(
precision, center, maxdeg=maxdeg
moments = (
np.exp(-0.5 * constant)
* length_norm
* compute_moments_inefficient_implementation(
precision, center, maxdeg=maxdeg
)
)
for l in range(lmax + 1):
deg = l + 2 * (num_ns[l] - 1)
Expand Down

0 comments on commit 5121cee

Please sign in to comment.