Skip to content

Failed assert with multiple circles #10

@thquinn

Description

@thquinn

With declarations as simple as:

from geosolver.solver.variable_handler import VariableHandler
from geosolver.solver.numeric_solver import NumericSolver

vh = VariableHandler()
A = vh.point('A')
B = vh.point('B')
AO = vh.circle(A)
BO = vh.circle(B)

I'm getting a failed assert:

Traceback (most recent call last):
  File "geosolve.py", line 8, in <module>
    BO = vh.circle(B)
  File ".../geosolver/solver/variable_handler.py", line 52, in circle
    r = self.number(r_name, init=init)
  File ".../geosolver/solver/variable_handler.py", line 17, in number
    assert name not in self.variables
AssertionError

If I comment out the second circle declaration, it works fine. I'm not having trouble with lines or anything else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions