Skip to content

Commit

Permalink
Last fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Grufoony committed Feb 13, 2025
1 parent 78efdfb commit 796261b
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions utils/get_osm_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from pathlib import Path
from matplotlib import pyplot as plt

Check warning

Code scanning / Prospector (reported by Codacy)

Unable to import 'matplotlib' (import-error) Warning

Unable to import 'matplotlib' (import-error)
import osmnx as ox
from tqdm import tqdm

Check warning

Code scanning / Prospector (reported by Codacy)

Unable to import 'tqdm' (import-error) Warning

Unable to import 'tqdm' (import-error)

__version__ = "2025.2.13"

Expand Down Expand Up @@ -181,9 +182,21 @@
)
if FULL_GRAPH is not None:
edge_colors = [
RGBA_RED if edge not in GRAPH.edges else RGBA_GRAY
for edge in FULL_GRAPH.edges
(
RGBA_GRAY
if any(
"geometry" in GRAPH.edges[g_edge]
and "geometry" in FULL_GRAPH.edges[full_edge]
and GRAPH.edges[g_edge]["geometry"].contains(
FULL_GRAPH.edges[full_edge]["geometry"]
)
for g_edge in GRAPH.edges
)
else RGBA_RED
)
for full_edge in tqdm(FULL_GRAPH.edges)
]

node_colors = [

Check warning

Code scanning / Pylint (reported by Codacy)

Constant name "node_colors" doesn't conform to UPPER_CASE naming style Warning

Constant name "node_colors" doesn't conform to UPPER_CASE naming style
RGBA_RED if node not in GRAPH.nodes else RGBA_WHITE
for node in FULL_GRAPH.nodes
Expand Down

0 comments on commit 796261b

Please sign in to comment.