Skip to content

Commit

Permalink
fix bug in spherical harmonic function
Browse files Browse the repository at this point in the history
  • Loading branch information
kenko911 committed Sep 27, 2024
1 parent e0b2fa1 commit b84f748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m3gnet/utils/_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def _calculate_symbolic_funcs(self):
funcs = [i.subs({theta: sympy.acos(costheta)}) for i in funcs]
self.orig_funcs = [sympy.simplify(i).evalf() for i in funcs]
results = [
sympy.lambdify([costheta, phi], i, [{"conjugate": _conjugate}, "tensorflow"]) for i in self.orig_funcs
sympy.lambdify([costheta, phi], i, [{"conjugate": sympy.conjugate}, "tensorflow"]) for i in self.orig_funcs
]
results[0] = _y00
return results
Expand Down

0 comments on commit b84f748

Please sign in to comment.