75bbea353c6e6e51166f4a51350ca6a35bd31040,regtests/soap.py,SoapTests,test_poly_integration,#SoapTests#,932
Before Change
// Calculate the analytical power spectrum and the weights and decays of
// the radial basis functions.
soap = SOAP(species=species, lmax=lmax, nmax=nmax, sigma=sigma, rcut=rcut, rbf="polynomial", crossover=True, sparse=False)
analytical_power_spectrum = soap.create(system, positions=[[0, 0, 0]])[0]
coeffs = np.zeros((n_elems, nmax, lmax+1, 2*lmax+1))
for iZ, Z in enumerate(elements):
indices = np.argwhere(species == Z)[0]
After Change
value *= prefactor
numerical_power_spectrum.append(value)
print("Numerical: {}".format(numerical_power_spectrum))
print("Analytical: {}".format(analytical_power_spectrum))
self.assertTrue(np.allclose(numerical_power_spectrum, analytical_power_spectrum, atol=1e-15, rtol=0.01))
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances Project Name: SINGROUP/dscribe
Commit Name: 75bbea353c6e6e51166f4a51350ca6a35bd31040
Time: 2020-06-17
Author: lauri.himanen@gmail.com
File Name: regtests/soap.py
Class Name: SoapTests
Method Name: test_poly_integration
Project Name: SINGROUP/dscribe
Commit Name: 877da731f2447d979ccc2312734d1d7b190e37c2
Time: 2019-12-17
Author: lauri.himanen@aalto.fi
File Name: regtests/soap.py
Class Name: SoapTests
Method Name: test_crossover
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: fcaf37ca034fecabeda10af7e5fe3c92760c2b48
Time: 2017-09-12
Author: gguuss@gmail.com
File Name: iot/api-client/manager/manager.py
Class Name:
Method Name: open_registry
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 223abdede96295f7fba58a1d1e1fb63a961c33f5
Time: 2019-10-09
Author: gguuss@gmail.com
File Name: iot/api-client/manager/manager.py
Class Name:
Method Name: create_registry
Project Name: HyperGAN/HyperGAN
Commit Name: 37b3d5091734a36a64b6536e0eb58f31319cafa9
Time: 2018-06-04
Author: mikkel@255bits.com
File Name: hypergan/discriminators/multi_discriminator.py
Class Name: MultiDiscriminator
Method Name: build