Skip to main content

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


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.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

bsimx-0.2.0-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page