AMLab-Amsterdam / lie_learn

Computations involving Lie groups and harmonic analysis
MIT License
190 stars 47 forks source link

Failed to run tests/spectral/test_S2_conv.py #19

Closed 0aqz0 closed 1 month ago

0aqz0 commented 3 years ago

I have cloned the latest code, and tried to run the tests/spectral/test_S2_conv.py. But I encountered this error:

Traceback (most recent call last):
  File "tests/spectral/test_S2_conv.py", line 54, in <module>
    compare_naive_and_spectral_conv()
  File "tests/spectral/test_S2_conv.py", line 22, in compare_naive_and_spectral_conv
    f12_grid_spectral = spectral_S2_conv(f1_grid, f2_grid, s2_fft=None, so3_fft=None)
  File "/home/ddq/projects/reference/lie_learn/venv/lib/python3.8/site-packages/lie_learn-0.0.1.post1-py3.8-linux-x86_64.egg/lie_learn/spectral/S2_conv.py", line 80, in spectral_S2_conv
    f1_hat = s2_fft.analyze(f1)
  File "/home/ddq/projects/reference/lie_learn/venv/lib/python3.8/site-packages/lie_learn-0.0.1.post1-py3.8-linux-x86_64.egg/lie_learn/spectral/S2FFT.py", line 46, in analyze
    return self.Ymat.T.conj().dot((f * self.w).flatten())
ValueError: operands could not be broadcast together with shapes (5,10) (10,20)

Is there any problem with this test script?