Skip to content

Commit 6a2b206

Browse files
committed
Fix filter condition
1 parent 2dd8837 commit 6a2b206

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

task_queue/grid_optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ def distance_between_nodes(self, label_node_1: str, label_node_2: str):
648648
-------
649649
distance between the two nodes in meter
650650
"""
651-
if (label_node_1 and label_node_2) in self.nodes.index:
651+
if label_node_1 in self.nodes.index and label_node_2 in self.nodes.index:
652652
# (x,y) coordinates of the points
653653
x1 = self.nodes.x.loc[label_node_1]
654654
y1 = self.nodes.y.loc[label_node_1]

0 commit comments

Comments
 (0)