torch-spherical-harmonics icon indicating copy to clipboard operation
torch-spherical-harmonics copied to clipboard

Small Bug in Range Functions

Open theAdityaRamesh opened this issue 9 months ago • 0 comments

https://github.com/cheind/torch-spherical-harmonics/blob/17591eb07600496f38972618ee8db722f4f67501/torchsh/symbolic/rsh.py#L39

Here it should be range(n+1) instead of range(10). The argument n is unused here. This will cause out of bounds error for SH bands more than order 10.

@cheind

theAdityaRamesh avatar May 10 '24 04:05 theAdityaRamesh