husseinaluie / FlowSieve

FlowSieve coarse-graining code base
https://flowsieve.readthedocs.io/en/latest/
Other
18 stars 9 forks source link

''from matpy import FiniteDiff'' failed #35

Open Yizhaofeng opened 1 year ago

Yizhaofeng commented 1 year ago

''from matpy import FiniteDiff'' , this command appears in Spherical Demo/Helmholtz/postprocessing/Plot_Spectral.ipynb.

I can't import matpy, but I'm sure I have the matpy library installed.

So far I haven't been able to successfully implement "from matpy import FiniteDiff". Does the FiniteDiff.py provided in the directory yields the same result?

bastorer commented 1 year ago

Ah, good catch! matpy is an in-house library that I'd built years ago, that I hadn't intended to include on that notebook. Thanks for catching it!

Does the FiniteDiff.py provided in the directory yields the same result?

Yes, the FiniteDiff.py file that's provided does the same thing. You should be able to do from FiniteDiff import FiniteDiff.

Yizhaofeng commented 1 year ago

Thanks @bastorer. Then I'll use it with confidence!