Add viewport to example

This commit is contained in:
Ruben Sanchez 2024-02-16 11:48:17 -05:00
parent 48b6afe31d
commit 1f6b05339f

View File

@ -25,12 +25,10 @@ try:
ConstructionFactory(construction_format, city).enrich()
UsageFactory(usage_format, city).enrich()
# Matsim(city, 'output_files').export()
# MatSimEngine('output_files/Montreal_config.xml').run()
# MatSimEngine('equil/config.xml').run()
Matsim(city, 'output_files').export()
MatSimEngine('output_files/Montreal_config.xml').run()
visualizer = MatsimVisualizer('output_files/Montreal/output_network.xml.gz', 'output_files/Montreal/output_events.xml.gz', 'output_files')
# visualizer = MatsimVisualizer('output/output_network.xml.gz', 'output/output_events.xml.gz', 'output_files')
visualizer = MatsimVisualizer('output_files/Montreal/output_network.xml.gz', 'output_files/Montreal/output_events.xml.gz', 'output_files', (3827652.8297388176, 6039933.844748944, 3873591.6501221485, 6042487.096594835))
visualizer.visualize()
except Exception as ex: