From 6fb8f32375680ad2f86c0280c2f1e5dd8ca97644 Mon Sep 17 00:00:00 2001 From: Daniel Shapero Date: Thu, 8 Aug 2024 14:33:03 -0700 Subject: [PATCH] Style + unicode --- src/zmsh/__init__.py | 5 ++++- src/zmsh/delaunay.py | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/zmsh/__init__.py b/src/zmsh/__init__.py index 2931324..816bb49 100644 --- a/src/zmsh/__init__.py +++ b/src/zmsh/__init__.py @@ -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 diff --git a/src/zmsh/delaunay.py b/src/zmsh/delaunay.py index a3566f7..55c80ce 100644 --- a/src/zmsh/delaunay.py +++ b/src/zmsh/delaunay.py @@ -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(