Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/robust_laplacian/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
def mesh_laplacian(verts, faces, mollify_factor=1e-5):

## Validate input
if type(verts) is not np.ndarray:
raise ValueError("`verts` should be a numpy array")
if not isinstance(verts, np.ndarray):
raise ValueError("`verts` should be an instance of numpy array")
if (len(verts.shape) != 2) or (verts.shape[1] != 3):
raise ValueError("`verts` should have shape (V,3), shape is " + str(verts.shape))

if type(faces) is not np.ndarray:
raise ValueError("`faces` should be a numpy array")
if not isinstance(faces, np.ndarray):
raise ValueError(f"`faces` should be an instance of numpy array")
if (len(faces.shape) != 2) or (faces.shape[1] != 3):
raise ValueError("`faces` should have shape (F,3), shape is " + str(faces.shape))

Expand Down