Fix typo.

This commit is contained in:
Sergey Vartanov 2021-06-08 02:06:44 +03:00
parent c87ab400e0
commit 9bc71ebf92
2 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ __author__ = "Sergey Vartanov"
__email__ = "me@enzet.ru"
SCHEME: Scheme = Scheme(Path("scheme/default.yml"))
SCHEME_EXTRACTOR: ShapeExtractor = ShapeExtractor(
SHAPE_EXTRACTOR: ShapeExtractor = ShapeExtractor(
Path("icons/icons.svg"), Path("icons/config.json")
)

View file

@ -6,7 +6,7 @@ from typing import Dict
from roentgen.icon import IconSet
from roentgen.grid import draw_all_icons
from test import SCHEME, SCHEME_EXTRACTOR
from test import SCHEME, SHAPE_EXTRACTOR
__author__ = "Sergey Vartanov"
__email__ = "me@enzet.ru"
@ -17,14 +17,14 @@ def test_icons() -> None:
Test grid drawing.
"""
makedirs("icon_set", exist_ok=True)
draw_all_icons(SCHEME, SCHEME_EXTRACTOR, "temp.svg", "icon_set")
draw_all_icons(SCHEME, SHAPE_EXTRACTOR, "temp.svg", "icon_set")
def get_icon(tags: Dict[str, str]) -> IconSet:
"""
Construct icon from tags.
"""
icon, _ = SCHEME.get_icon(SCHEME_EXTRACTOR, tags)
icon, _ = SCHEME.get_icon(SHAPE_EXTRACTOR, tags)
return icon