Skip to content

Commit

Permalink
fix runway colors, ref #166
Browse files Browse the repository at this point in the history
  • Loading branch information
xoolive committed Dec 10, 2021
1 parent a602ec2 commit 0877458
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Leaflet = "traffic.plugins.leaflet"

[tool.poetry.dependencies]
python = ">=3.7.1,<3.10"
numpy = "^1.18"
numpy = "^1.21"
scipy = "^1.7.0"
matplotlib = "^3.4.2"
pandas = "^1.2.4"
Expand Down Expand Up @@ -150,5 +150,5 @@ warn_unused_configs = true
warn_unused_ignores = true

[tool.pytest.ini_options]
addopts = "--log-level=DEBUG"
addopts = "--log-level=DEBUG --color=yes"
testpaths = ["tests"]
4 changes: 4 additions & 0 deletions traffic/core/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ def plot( # type: ignore
),
windsock=dict(alpha=0),
)
# runways can come from OSM or from the runway database
# since options may clash, this should fix it
if isinstance(runways, dict):
footprint["runway"] = runways

if isinstance(footprint, dict):
self._openstreetmap().plot(ax, **footprint)
Expand Down

0 comments on commit 0877458

Please sign in to comment.