
Installation¶
pyLSET requires Python 3.11 to 3.13 and the packages NumPy, SciPy, PyTorch, h5py, vtk and scikit-image.
Install from the repository folder with
Optional dependencies are available as extras.
| Extra | Packages | Purpose |
|---|---|---|
fmm |
scikit-fmm | The 'FMM' method for do_sdf() and do_reinitialization() |
mesh |
gmsh | mesh_domain(), and the Gmsh and CAD formats of load_surface() |
edt |
edt | A faster multi-label Euclidean distance transform for the 'EDT' method |
test |
pytest | Running the tests with pytest |
docs |
mkdocs, mkdocs-material, mkdocstrings, mkdocs-jupyter | Building this documentation |
For example, pip install -e ".[fmm,edt]".
load_surface() reads STL files and VTK polygon data (.vtp) with the required packages alone. The mesh extra is needed for Gmsh meshes (.msh) and for Gmsh geometry and CAD files (.geo, .step, .stp, .iges, .igs, .brep), which Gmsh meshes before they are read.
To use a GPU, install a PyTorch build with CUDA support and set device_type='GPU' and device_number in the configuration.