librascal icon indicating copy to clipboard operation
librascal copied to clipboard

SphericalCovariants.get_num_coefficients() incorrect for n_species > 1

Open max-veit opened this issue 3 years ago • 5 comments

The above-mentioned function does not account for librascal's treatment of species symmetry, i.e. not computing off-diagonal species blocks. It returns a number multiplied by n_species**2 when it should be n_species * (n_species+1)/2.

This looks like a one-liner, but let's keep it on our list.

max-veit avatar Apr 06 '21 17:04 max-veit

Just found #260 , which is related because this issue could also have been found with clearer code.

max-veit avatar Apr 08 '21 20:04 max-veit

Can I try to work on this issue?

boyuan12 avatar Apr 22 '21 02:04 boyuan12

Sure, just commit your fix to a branch named like bugfix/sc_num_coefficients.

max-veit avatar Apr 22 '21 15:04 max-veit

@max-veit Can you tell me which file is SphericalCovariants.get_num_coefficients() function located please?

boyuan12 avatar Apr 22 '21 16:04 boyuan12

It's in bindings/rascal/representations/spherical_covariants.py, where SphericalCovariants is defined.

max-veit avatar Apr 22 '21 17:04 max-veit