MathEXLab / PySPOD

A Python package for spectral proper orthogonal decomposition (SPOD).
https://mathexlab.github.io/PySPOD/
MIT License
101 stars 30 forks source link

The test py has error at the beginning #30

Closed BinglinW closed 1 year ago

BinglinW commented 1 year ago

Hi, when I run the test py file, there exists an error because there is no spod

from pyspod.spod.standard  import Standard  as spod_standard
from pyspod.spod.streaming import Streaming as spod_streaming

May I know how to solve it?

mengaldo commented 1 year ago

Thank you for the query. Can you provide more information (e.g., the test py file)?

BinglinW commented 1 year ago

Thank you for the query. Can you provide more information (e.g., the test py file)? \PySPOD-main\tests\test_utils_serial.py

line17 ModuleNotFoundError: No module named 'pyspod.spod'

\PySPOD-main\tutorials\tutorial1\tutorial1.py

line 15 from pyspod.spod.standard  import Standard  as spod_standard
ModuleNotFoundError: No module named 'pyspod.spod'
mengaldo commented 1 year ago

Thank you. Can you try installing the library using: python3 setup.py install

BinglinW commented 1 year ago

Thank you. Can you try installing the library using: python3 setup.py install

I have already installed the pyspod. If I run "import pyspod", it is ok.

However, there is no pyspod.spod. In C:\Users\wbl\AppData\Roaming\Python\Python38\site-packages\pyspod, there is no file named spod, only with spod_base, spod_low_ram, et.al.

image

mengaldo commented 1 year ago

I see, note that we deployed a new version, that we are currently testing. The new version is parallel. I suggest that you clone the new repository, and run the command python3 setup.py install

tutorial1 should then work.

mengaldo commented 1 year ago

@BinglinW can I close the issue?

BinglinW commented 1 year ago

@BinglinW can I close the issue? yes, thanks for your help.

mengaldo commented 1 year ago

Great, thank you.