Skip to content

Clean up geometry/ stub module (hardcoded pi, NotImplementedError) #109

Closed

Description

@CameronBrooks11

What

Clean up the unused fiberpath/geometry/ stub module: the hardcoded pi literal and the NotImplementedError placeholder, and decide whether the unused data classes stay, get fleshed out, or are removed.

Why

Surfaced while aligning docs with implemented scope (#107). The geometry/ package is not imported by the planner/simulator (real kinematics live in fiberpath/planning/calculations.py, cylinder-only). It currently advertises capability it doesn't have:

  • surfaces.py:17 hardcodes pi as a literal (3.141592653589793) instead of math.pi.
  • intersections.py:15-23 intersect_curve_with_plane() is a NotImplementedError stub.
  • surfaces.py / curves.py are data classes only, with no callers.

Kept out of the #107 docs PR deliberately (docs-only boundary). This is the code-side follow-up.

Where

  • fiberpath/geometry/surfaces.py (hardcoded pi)
  • fiberpath/geometry/intersections.py (NotImplementedError stub)
  • fiberpath/geometry/curves.py, __init__.py

Acceptance criteria

  • surfaces.py uses math.pi (or the module is removed if confirmed dead)
  • A decision is recorded: keep as documented foundation for planned non-cylindrical support, vs. remove the dead intersections.py stub / unused dataclasses
  • No dangling imports or references after the change; ruff + mypy clean

Activity

  1. added
    python
    on Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    python

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions