AndreWeiner / ml-cfd-lecture

Lecture material for machine learning applied to computational fluid mechanics
GNU General Public License v3.0
330 stars 116 forks source link

Exercise 5 no module named 'flowtorch.data' #37

Closed hyzahw closed 5 months ago

hyzahw commented 5 months ago

Hi,

In exercise 5, while trying plotting the Re numbers and after writing the line from flowtorch.data import FOAMDataloader

I got the error:

ModuleNotFoundError: No module named 'flowtorch.data'

I activated both python and apptainer environments before opening Jupyter via

source ml-cfd/bin/activate
source ml-cfd-lecture/setup-env 

Any suggestions?

AndreWeiner commented 5 months ago

Hi @hyzahw, it appears like flowTorch is not installed in your virtual environment. Try:

source ml-cfd/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
# check the pip output for warning or error messages
# run the notebook of your choice

Refer to exercise 0 for more information. Best, Andre

hyzahw commented 5 months ago

Thanks @AndreWeiner, it's working fine now.