Skip to content

Commit

Permalink
Style + unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
danshapero committed Aug 8, 2024
1 parent 6978547 commit 6fb8f32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/zmsh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
from .geometry import compositions, Geometry
from .convex_hull import ConvexHullMachine, convex_hull
from .delaunay import (
DelaunayMachine, delaunay, ConstrainedDelaunayMachine, constrained_delaunay
DelaunayMachine,
ConstrainedDelaunayMachine,
delaunay,
constrained_delaunay,
)
from .plotting import visualize

Expand Down
4 changes: 1 addition & 3 deletions src/zmsh/delaunay.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ def _faces_cross(x1, x2):
class ConstrainedDelaunayMachine:
def __init__(self, geometry: Geometry):
if geometry.dimension != geometry.topology.dimension + 1:
raise ValueError(
"Starting geometry must be a d-surface in R^{d + 1}"
)
raise ValueError("Starting geometry must be a d-surface in Rᵈ⁺¹")

if (geometry.topology.dimension != 1) or (geometry.dimension != 2):
raise NotImplementedError(
Expand Down

0 comments on commit 6fb8f32

Please sign in to comment.