Skip to content

Commit

Permalink
added updated maps for the studitum-garching
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Nov 9, 2022
1 parent d3b35bd commit b7ba2ea
Show file tree
Hide file tree
Showing 14 changed files with 219 additions and 1,815 deletions.
7 changes: 6 additions & 1 deletion data/processors/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
import yaml
from PIL import Image

import utils

EXTERNAL_RESULTS_PATH = Path(__file__).parent.parent / "external" / "results"
RF_MAPS_PATH = EXTERNAL_RESULTS_PATH / "maps" / "roomfinder"
CUSTOM_RF_DIR = Path(__file__).parent.parent / "sources" / "img" / "maps" / "roomfinder"


def _assign_roomfinder_maps(data):
Expand Down Expand Up @@ -245,6 +248,8 @@ def _load_custom_maps():
with open("sources/45_custom-maps.yaml", encoding="utf-8") as file:
custom_maps = yaml.safe_load(file.read())

utils.convert_to_webp(CUSTOM_RF_DIR)

# Convert into the format used by maps_roomfinder.json:
maps_out = {}
for map_group in custom_maps:
Expand All @@ -261,7 +266,7 @@ def _load_custom_maps():
},
}
for sub_map in map_group["maps"]:
img = Image.open("sources/img/maps/roomfinder/" + sub_map["file"])
img = Image.open(CUSTOM_RF_DIR / sub_map["file"])
maps_out[(sub_map["b_id"], sub_map["floor"])] = {
"desc": sub_map["desc"],
"id": ".".join(sub_map["file"].split(".")[:-1]),
Expand Down
213 changes: 213 additions & 0 deletions data/sources/img-sources/maps/studitum-garching.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
1,814 changes: 0 additions & 1,814 deletions data/sources/img-sources/maps/studitum-garching/studitum-garching.svg

This file was deleted.

Binary file modified data/sources/img/maps/overlay/5532_0.webp
Binary file not shown.
Binary file modified data/sources/img/maps/overlay/5532_1.webp
Binary file not shown.
Binary file modified data/sources/img/maps/overlay/5532_2.webp
Binary file not shown.
Binary file modified data/sources/img/maps/overlay/5532_3.webp
Binary file not shown.
Binary file added data/sources/img/maps/overlay/5532_4.webp
Binary file not shown.
Binary file modified data/sources/img/maps/roomfinder/5532_0.webp
Binary file not shown.
Binary file modified data/sources/img/maps/roomfinder/5532_1.webp
Binary file not shown.
Binary file modified data/sources/img/maps/roomfinder/5532_2.webp
Binary file not shown.
Binary file modified data/sources/img/maps/roomfinder/5532_3.webp
Binary file not shown.
Binary file added data/sources/img/maps/roomfinder/5532_4.webp
Binary file not shown.

0 comments on commit b7ba2ea

Please sign in to comment.