Skip to content

Commit

Permalink
Make black happy
Browse files Browse the repository at this point in the history
  • Loading branch information
funkey committed Apr 25, 2024
1 parent ed7930b commit 4340aaf
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/motile_toolbox/candidate_graph/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,19 +100,11 @@ def _compute_node_frame_dict(cand_graph: nx.DiGraph) -> dict[int, list[Any]]:
return node_frame_dict


def create_kdtree(
cand_graph: nx.DiGraph,
node_ids: Iterable[Any]
) -> KDTree:

positions = [
cand_graph.nodes[node][NodeAttr.POS.value]
for node in node_ids
]
def create_kdtree(cand_graph: nx.DiGraph, node_ids: Iterable[Any]) -> KDTree:
positions = [cand_graph.nodes[node][NodeAttr.POS.value] for node in node_ids]
return KDTree(positions)



def add_cand_edges(
cand_graph: nx.DiGraph,
max_edge_distance: float,
Expand Down

0 comments on commit 4340aaf

Please sign in to comment.