From 62470502afb6f1069db4d59ef4fa9290b8046ae1 Mon Sep 17 00:00:00 2001 From: Adam Amer <136176500+adamamer20@users.noreply.github.com> Date: Fri, 5 Jan 2024 23:58:32 +0100 Subject: [PATCH] updated documentation --- README.md | 3 +- docs/api/index.html | 218 +++- docs/api/mesa_frames/agent.html | 422 ++++---- docs/api/mesa_frames/model.html | 1739 +++++++++++++++---------------- docs/api/search.js | 2 +- docs/api/streetcrime/space.html | 238 +++++ mesa_frames/agent.py | 4 +- mesa_frames/model.py | 88 +- 8 files changed, 1553 insertions(+), 1161 deletions(-) create mode 100644 docs/api/streetcrime/space.html diff --git a/README.md b/README.md index 27bc30c..ab492ee 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,7 @@ class MyAgent(AgentDF): def step(cls): wealthy_agents = cls.model.agents.loc[cls.mask, "wealth"] > 0 if wealthy_agents.any(): - #The next line finds the mask of a random sample of agents which รน - is of the same length as wealthy agents + #The next line finds the mask of a random sample of agents which is of the same length as wealthy agents other_agents = cls.model.agents.index.isin( cls.model.agents.sample(n=wealthy_agents.sum()).index ) diff --git a/docs/api/index.html b/docs/api/index.html index c71a5d3..63616b0 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -1,7 +1,217 @@ - +
- - - + + +