Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
robfitzgerald committed Sep 29, 2023
1 parent f1fd7af commit 4033b3b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nrel/hive/model/roadnetwork/link_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ def extract_node_ids(
return None, (src, dst)


def extract_node_ids_int(
link_id: LinkId
) -> Tuple[Optional[Exception], Optional[Tuple[int, int]]]:
def extract_node_ids_int(link_id: LinkId) -> Tuple[Optional[Exception], Optional[Tuple[int, int]]]:
"""node ids can be strings for the haversine case but for networkx graphs they must be
integers as they are treated as indices.
Expand All @@ -68,6 +66,7 @@ def extract_node_ids_int(
except ValueError as e:
return e, None


def reverse_link_id(
link_id: LinkId,
) -> Tuple[Optional[Exception], Optional[LinkId]]:
Expand Down

0 comments on commit 4033b3b

Please sign in to comment.