diff options
Diffstat (limited to 'lib/graph.py')
-rw-r--r-- | lib/graph.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/graph.py b/lib/graph.py index d0c91a7..d8ccf75 100644 --- a/lib/graph.py +++ b/lib/graph.py @@ -50,7 +50,7 @@ from . import great_circle_arc from . import vector # Set to True to enable some sanity checks -DEBUG = False +DEBUG = True class Graph: @@ -78,6 +78,8 @@ class Graph: source_polygon : `~sphere.polygon.SphericalPolygon` instance, optional The polygon(s) this node came from. Used for bookkeeping. """ + point = vector.normalize_vector(*point) + self._point = np.asanyarray(point) self._source_polygons = set(source_polygons) self._edges = weakref.WeakSet() @@ -267,7 +269,6 @@ class Graph: node : `~Graph.Node` instance The new node """ - point = vector.normalize_vector(*point) new_node = self.Node(point, source_polygons) # Don't add nodes that already exist. Update the existing @@ -661,7 +662,6 @@ class Graph: for j in intersection_indices: C = starts[j] D = ends[j] - CD = edges[j] E = intersections[j] |