Module io

Functions for file handling.

ectopylasm.io.load_plyfile(filename)[source]

Load a PLY file.

ectopylasm.io.pandas_vertices_from_plyfile(filename)[source]

Load vertices from plyfile and return as pandas DataFrame.

ectopylasm.io.vaex_vertices_from_plyfile(filename)[source]

Load vertices from plyfile and return as vaex DataFrame.

ectopylasm.io.vertex_dict_from_plyfile(filename)[source]

Load vertices from PLY file and return as dict with x, y, z keys.

To increase loading speed dramatically, this function creates an HDF5 cache file when loading a PLY file for the first time. When the cache exists (it has the same path as the PLY file, except for the extension, which is replaced by “.cache.ecto”), this function will load the data from there instead of from the PLY file.