diff --git a/clusterview2/point_manager.py b/clusterview2/point_manager.py index 056aa95..177a51d 100644 --- a/clusterview2/point_manager.py +++ b/clusterview2/point_manager.py @@ -32,7 +32,7 @@ class PointManager(): # We will need to cast the string representation of color # back into a Color enum. PointManager.point_set.add_point(point['x'], point['y'], - Color(point['color'], point['weight'])) + Color(point['color']), point['weight']) @staticmethod def save(location): diff --git a/clusterview2/points.py b/clusterview2/points.py index 8e68f40..86d7bfd 100644 --- a/clusterview2/points.py +++ b/clusterview2/points.py @@ -71,7 +71,7 @@ class Point(BasePoint): @weight.setter def weight(self, weight): - return self._weight + self._weight = weight @property def cluster(self): @@ -179,6 +179,7 @@ class Point(BasePoint): s += f"X: {self._x} | Y: {self._y} | " s += f"SIZE: {self._point_size} | " s += f"COLOR: {self._color} | " + s += f"WEIGHT: {self._weight} | " s += f"VIEWPORT_WIDTH: {self._viewport_width} | " s += f"VIEWPORT_HEIGHT: {self._viewport_height}" s += ">"