The agent-based modeling tool with deck.gl, networkx and osmnx.
Project description
bsimx
The agent-based modeling tool with deck.gl, networkx and osmnx..
Installation
pip install networkx osmnx bsimx
Getting Started
import osmnx as ox
from bsimx import preview, Agent, simulate
G = ox.graph_from_place("Takamatsu Hayashi", network_type="drive")
class Escaper(Agent):
start: int
def on_started(self):
self.set_start_node(self.start)
self.set_goal_node(1042117440)
self.set_speed(1.0)
sr = simulate([Escaper(start=1042116599), Escaper(start=4111619945)], G)
preview(sr)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bsimx-0.2.1.tar.gz
(271.8 kB
view hashes)
Built Distribution
bsimx-0.2.1-py3-none-any.whl
(276.0 kB
view hashes)