Skip to content

Commit

Permalink
fixed minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jobdewitte committed Jan 23, 2025
1 parent f841887 commit 0cf1d22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion traceon/_typing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from future import __annotations__
from __future__ import annotations

from ._array_like import(
ArrayFloat, ArrayFloat1D, ArrayFloat2D, ArrayFloat3D, ArrayFloat4D, ArrayFloat5D,
Expand Down
4 changes: 2 additions & 2 deletions traceon/mesher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ def _subdivide_quads(pstack: PointStack,
else: # We are done, both sides are within mesh size limits
quads.append((depth, i0, i1, j0, j1))

def _mesh_subsections_to_quads(surface: Surface, mesh_size: float, start_depth: int) -> tuple[Points3D, list[PointStack], Quads]:
def _mesh_subsections_to_quads(surface: Surface, mesh_size: float, start_depth: int) -> tuple[list[Point3D], list[PointStack], list[QuadsLike]]:
all_pstacks = []
all_quads = []
points: list[Point3D] = []
Expand All @@ -1071,7 +1071,7 @@ def _mesh_subsections_to_quads(surface: Surface, mesh_size: float, start_depth:
all_quads.append(quads)
points = pstack.points

return np.array(points), all_pstacks, np.array(all_quads)
return points, all_pstacks, all_quads

def _copy_over_edge(e1: ArrayInt1D, e2: ArrayInt1D) -> None:
assert e1.shape == e2.shape
Expand Down
2 changes: 1 addition & 1 deletion traceon/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .backend import DEBUG
from . import logging

from ._typing import *
from .typing import *

class Saveable:
def write(self, filename: str) -> None:
Expand Down

0 comments on commit 0cf1d22

Please sign in to comment.