marian42 / mesh_to_sdf

Calculate signed distance fields for arbitrary meshes
https://pypi.org/project/mesh-to-sdf/
MIT License
991 stars 107 forks source link

it seems the imported modules are cached... #30

Open hex41434 opened 2 years ago

hex41434 commented 2 years ago

Thanks a lot for the great library! I would like to share my experience, I hope it is helpful:

(I run on Ubuntu, using ssh, visual studio code, conda environment, jupyter notebook)

I made a change in code (wanted to change the mesh scaling inside the unit sphere), and changes were not applied! it seems it caches the imported modules! I tried different things such as restarting the jupyter kernel, re-import the modules and "autoreload" command of jupyter but they did not help. finally, I changed the "relative imports" to "absolute imports" and it works. I am not sure if It causes the problem, just wanted to share my experience.

Best, Aida