deepsphere/deepsphere-weather

Where is package igl?

Closed this issue · 6 comments

import igl, where is package igl ? This one? https://github.com/libigl/libigl

mdeff commented

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 .

mdeff commented

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:

laplacians_list = [graph.L if gtype == 'knn' else compute_cotan_laplacian(graph, return_mass=False) for graph in graphs]

Quick fix: comment the import igl statement and the compute_cotan_laplacian function in modules/models.py and build a knn graph (which should be the default). Properly fixed in git main.

mdeff commented

I just made libigl an optional dependency so you won't need it unless you use the mesh graph option.

@mdeff

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

mdeff commented

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.