From f5d59cd74f9b173e450be9c7f43a396a33ff54ba Mon Sep 17 00:00:00 2001 From: Stefan Harmuth Date: Sun, 7 Aug 2022 19:36:48 +0200 Subject: [PATCH] cleanup --- tools/coordinate.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/coordinate.py b/tools/coordinate.py index 3609eff..de3edc3 100644 --- a/tools/coordinate.py +++ b/tools/coordinate.py @@ -62,7 +62,7 @@ class Coordinate: def getNeighbours(self, includeDiagonal: bool = True, minX: int = -inf, minY: int = -inf, maxX: int = inf, maxY: int = inf, minZ: int = -inf, maxZ: int = inf) -> list[Coordinate]: """ - Get a list of neighbouring coordinates + Get a list of neighbouring coordinates. :param includeDiagonal: include diagonal neighbours :param minX: ignore all neighbours that would have an X value below this @@ -73,7 +73,6 @@ class Coordinate: :param maxZ: ignore all neighbours that would have an Z value above this :return: list of Coordinate """ - neighbourList = [] if self.z is None: if includeDiagonal: nb_list = [(-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 1), (1, -1), (1, 0), (1, 1)]