Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
clbarnes committed Jan 16, 2024
1 parent 9a09434 commit 743ae45
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/ncollpyde/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import warnings
from multiprocessing import cpu_count
from typing import TYPE_CHECKING, Optional, Tuple, Union, List
from enum import IntFlag, auto
from enum import IntFlag

import numpy as np
from numpy.typing import ArrayLike, NDArray
Expand Down Expand Up @@ -36,6 +36,7 @@ class Validation(IntFlag):
Combine with `|`.
Must contain ORIENTED (see `Validation.minimum()`).
"""

HALF_EDGE_TOPOLOGY = 1
CONNECTED_COMPONENTS = 2
DELETE_BAD_TOPOLOGY_TRIANGLES = 4
Expand Down Expand Up @@ -150,9 +151,7 @@ def __init__(
"""
vert = np.asarray(vertices, self.dtype)
if len(vert) > np.iinfo(INDEX).max:
raise ValueError(
f"Cannot represent {len(vert)} vertices with {INDEX}"
)
raise ValueError(f"Cannot represent {len(vert)} vertices with {INDEX}")
tri = np.asarray(triangles, INDEX)
if isinstance(validate, bool):
warnings.warn(
Expand Down

0 comments on commit 743ae45

Please sign in to comment.