From b0d83a9116a5354d6ead1572694bdf2010ff06c8 Mon Sep 17 00:00:00 2001 From: Pascal Lais Date: Tue, 10 Mar 2020 08:38:33 +0100 Subject: [PATCH] Update algorithm.py Methods str of point and linesegment are now operators --- algorithm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/algorithm.py b/algorithm.py index f347477..d17819d 100644 --- a/algorithm.py +++ b/algorithm.py @@ -133,11 +133,11 @@ class NearestNeighborsSweep(Algorithm): for i, pnt in enumerate(self._input): if i: result_string += "," - result_string += pnt.str() + result_string += str(pnt) result_string += "]\n" result_string += " Nearest Neighbors: " - result_string += linesegment.LineSegment(self._result["points"][0], \ - self._result["points"][1]).str() + result_string += str(linesegment.LineSegment(self._result["points"][0], \ + self._result["points"][1])) result_string += "\n" result_string += " Distance: " + str(self._result["distance"]) + "\n" result_string += " Number of steps:\n"