Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-lin1027 committed May 2, 2024
1 parent dc0ab45 commit 7b0656f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/test_radial_basis.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,12 @@ def test_limit_large_sigma(self, sigma, r_ij, lengths, rotation_matrix):
hypers["r_ij"] = r_ij
hypers["lengths"] = lengths
hypers["rotation_matrix"] = rotation_matrix
prec_mon, center_mon, constant_mon = basis_mon.compute_gaussian_parameters(**hypers)
prec_gto, center_gto, constant_gto = basis_gto.compute_gaussian_parameters(**hypers)
prec_mon, center_mon, constant_mon = basis_mon.compute_gaussian_parameters(
**hypers
)
prec_gto, center_gto, constant_gto = basis_gto.compute_gaussian_parameters(
**hypers
)

# Check that for large sigma, the two are close
assert_allclose(center_mon, center_gto, rtol=1e-10, atol=1e-15)
Expand All @@ -173,7 +177,9 @@ def test_limit_small_sigma(self, sigma, r_ij, lengths, rotation_matrix):
hypers["r_ij"] = r_ij
hypers["lengths"] = lengths
hypers["rotation_matrix"] = rotation_matrix
prec_gto, center_gto, constant_gto = basis_gto.compute_gaussian_parameters(**hypers)
prec_gto, center_gto, constant_gto = basis_gto.compute_gaussian_parameters(
**hypers
)

# Check that for large sigma, the two are close
prec_ref = np.eye(3) / sigma**2
Expand Down

0 comments on commit 7b0656f

Please sign in to comment.