MCPcopy Create free account
hub / github.com/SINGROUP/dscribe / save_poly_coefficients

Function save_poly_coefficients

tests/testutils.py:389–400  ·  view source on GitHub ↗

Used to precalculate the numerical SOAP coefficients for a test system. Calculating these takes a significant amount of time, so during tests these preloaded values are used.

()

Source from the content-addressed store, hash-verified

387
388
389def save_poly_coefficients():
390 """Used to precalculate the numerical SOAP coefficients for a test
391 system. Calculating these takes a significant amount of time, so during
392 tests these preloaded values are used.
393 """
394 system, centers, args = get_soap_polynomial_l_max_setup()
395 coeffs = coefficients_polynomial(system, centers, args)
396 np.save(
397 folder
398 / "polynomial_coefficients_{n_max}_{l_max}_{r_cut}_{sigma}.npy".format(**args),
399 coeffs,
400 )
401
402
403def calculate_ewald(system, a=None, r_cut=None, g_cut=None, accuracy=None):

Callers

nothing calls this directly

Calls 2

coefficients_polynomialFunction · 0.85

Tested by

no test coverage detected