Where is package igl?
Closed this issue · 6 comments
import igl
, where is package igl ? This one? https://github.com/libigl/libigl
Yes! With its python bindings https://github.com/libigl/libigl-python-bindings. Install with conda install -c conda-forge igl
.
Hey, @mdeff
I don't use conda at all.
Is there any other way to install libigl python ? Please take a look at my issue here: libigl/libigl-python-bindings#98, or here: fwilliams/numpyeigen#53 .
Sorry I've only ever installed libigl
with conda
.
You can however use deepsphere-weather
without libigl
, which is only used to build a mesh graph from a sampled sphere. The alternative is to build a knn graph. Here's the relevant code:
deepsphere-weather/modules/models.py
Line 94 in b85757a
Quick fix: comment the Properly fixed in git main.import igl
statement and the compute_cotan_laplacian
function in modules/models.py
and build a knn graph (which should be the default).
I just made libigl
an optional dependency so you won't need it unless you use the mesh graph option.
I was actually testing https://github.com/deepsphere/deepsphere-weather/blob/main/tutorials/spherical_grids.ipynb , which comes with a Mesh Laplacian
demo, which requires to import igl
.
hmmmm
I'm afraid there's no way out of using libigl
for the mesh demo. ;) It's the best library I found for the task. I hope your installation issue can be fixed! In the meantime, I encourage you to give conda
a try. It's a great tool that avoids many installation issues.
Closing this for now, as I don't think there's anything else we can do.