Begin function for showing the map (for now just opens SDL window)

[?]
Jun 14, 2021, 12:15 PM
ROQCAPZJPLENWBMHRK7DNH3CIMZRHPBMVBBKT7NQXRIFHEDZ5JHQC

Dependencies

  • [2] X5U7KRUI Parse some of the data into tensors
  • [3] VKA5CCGC Add pysdl2 to the trainmodel dependencies so I'll be able to visualize what's going on.

Change contents

  • file addition: drawmap.py (----------)
    [2.6]
    import sys
    import sdl2
    import sdl2.ext
    def run():
    # Use equirectangular projection
    window = sdl2.ext.Window("Training neural network: memorizing fictional world map", size=(1024,512))
    window.show()
    running = True
    while running:
    events = sdl2.ext.get_events()
    for event in events:
    if event.type == sdl2.SDL_QUIT:
    running = False
    break
    window.refresh()
    return 0