Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
bc4c09f
Editing tutorial
dmasad Nov 5, 2015
3fe7104
More tutorial writing
dmasad Nov 5, 2015
ac33b21
More writing
dmasad Nov 5, 2015
42ec5cd
Adding to the tutorial
dmasad Nov 5, 2015
7a56cd0
More tutorial writing
dmasad Nov 5, 2015
c7f4a06
More tutorial writing
dmasad Nov 6, 2015
8393863
More writing + images
dmasad Nov 6, 2015
f438b59
More images
dmasad Nov 6, 2015
79bdb2b
Edit
dmasad Nov 6, 2015
f358dfd
tweak
dmasad Nov 6, 2015
d48fd9b
tweak
dmasad Nov 6, 2015
ac4c452
Some more graphics
dmasad Nov 6, 2015
d2eca29
accidentally a letter
dmasad Nov 6, 2015
88a819d
Code block alignment fixing
dmasad Nov 6, 2015
bd3812b
Fixing some more alignments
dmasad Nov 6, 2015
f3599d2
accidentally a space
dmasad Nov 6, 2015
6bda4f4
Cleanup
dmasad Nov 6, 2015
346d67b
Edits
dmasad Nov 6, 2015
0bb9c60
Building docs
dmasad Nov 6, 2015
1e421bf
Mock imports
dmasad Nov 7, 2015
9595f1a
Adding scipy to mock
dmasad Nov 7, 2015
2adcd97
Visualization section
dmasad Nov 9, 2015
9d4d744
Starting to write custom viz module tutorial
dmasad Nov 20, 2015
cb598c7
Client-side tutorial
dmasad Nov 21, 2015
5af51b9
Finishing tutorial draft
dmasad Nov 21, 2015
6d27e5d
Adding a toc?
dmasad Nov 21, 2015
ff859c0
Minor tutorial edits
dmasad Nov 21, 2015
32c97e0
Excluding numpy from setup
dmasad Nov 21, 2015
c543dec
Removing spicy as requirement
dmasad Nov 21, 2015
22b777c
Removing version requirements
dmasad Nov 21, 2015
cc1296f
Mocking pandas?
dmasad Nov 21, 2015
abc8d05
Tweaking docstings
dmasad Nov 21, 2015
51e24c8
Rebuilding
dmasad Nov 21, 2015
0f04177
And again?
dmasad Nov 21, 2015
740ff36
Typo and disclaimer
dmasad Nov 21, 2015
9eae4ce
Page header?
dmasad Nov 21, 2015
d250dc9
Minor tutorial tweaks
dmasad Nov 23, 2015
1112935
Fix typos, etc., in the tutorial.
VictorNorman Dec 16, 2015
9f26457
Merge pull request #179 from VictorNorman/tutorial_update-vic_norman
dmasad Dec 27, 2015
e2d038f
Clarifying 'running' property in tutorial.
dmasad Jan 2, 2016
067e1b7
Add to tutorial
dmasad Mar 30, 2016
abbfa2f
Fixing conflicts
dmasad Mar 31, 2016
883802f
Updating to new version of Chart.js
dmasad Mar 31, 2016
d9fb474
Merge pull request #199 from projectmesa/chartjs_fix.149
dmasad Mar 31, 2016
6d2bdb1
Fixing bugs via Issue #200
dmasad Apr 1, 2016
de861d2
Minor text updates to smooth flow or fix spelling.
jackiekazil Apr 18, 2016
d51649d
Trying to mock out numpy and scipy
dmasad Apr 20, 2016
44dd86d
Tweak conf
dmasad Apr 20, 2016
6075989
Removing spicy from requirements
dmasad Apr 20, 2016
c20d135
Adding scipy back?
dmasad Apr 20, 2016
664e447
Fixing tutorial file names
dmasad Apr 21, 2016
e9df8bf
Minor updates to 'Adding the scheduler'
jackiekazil Apr 26, 2016
6a05547
Minor updates to 'Running your first model'
jackiekazil Apr 26, 2016
6486bfe
Minor updates to Adding space and a requirements build test.
jackiekazil Apr 26, 2016
71d48ec
updating requirements to fix tutorial build.
jackiekazil Apr 26, 2016
c25bf98
Fixing formatting error.
jackiekazil Apr 26, 2016
6f05336
I wonder if this will make a difference.
jackiekazil Apr 26, 2016
14c1812
Now I am just guessing.
jackiekazil Apr 26, 2016
4cc3203
Last try, then I give up.
jackiekazil Apr 26, 2016
be8da78
I give up.
jackiekazil Apr 26, 2016
f3ec9a4
Trying again.
jackiekazil Apr 28, 2016
51b3716
Final tutorial update of text.
jackiekazil May 1, 2016
d459f8b
Updating all tutorial related materials.
dmasad Nov 5, 2015
82a18ba
Updating history.md
jackiekazil May 12, 2016
347b788
Merge branch 'tutorial_update' of github.com:projectmesa/mesa into tu…
jackiekazil May 12, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Release History
Next release
++++++++++++++++++

* Update of tutorial files and docs #176, #172
* Adds np.int64() functions around some variables to get rid error caused by numpy update #188
* Made examples Readme.md more readable #189

Expand Down
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/index.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html/_sources/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ If you would like to add a feature, please reach out via `ticket`_ or the `email
.. toctree::
:maxdepth: 1

Mesa overview <index>
Mesa overview <overview>
intro-tutorial


Expand Down
36 changes: 34 additions & 2 deletions docs/_build/html/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ <h2 id="A">A</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%" valign="top"><dl>

<dt><a href="mesa.html#mesa.space.accept_tuple_argument">accept_tuple_argument() (in module mesa.space)</a>
</dt>


<dt><a href="mesa.html#mesa.time.BaseScheduler.add">add() (mesa.time.BaseScheduler method)</a>
</dt>

Expand Down Expand Up @@ -172,6 +176,10 @@ <h2 id="C">C</h2>
</dt>


<dt><a href="mesa.visualization.html#mesa.visualization.ModularVisualization.SocketHandler.check_origin">check_origin() (mesa.visualization.ModularVisualization.SocketHandler method)</a>
</dt>


<dt><a href="mesa.html#mesa.datacollection.DataCollector.collect">collect() (mesa.datacollection.DataCollector method)</a>
</dt>

Expand Down Expand Up @@ -766,24 +774,44 @@ <h2 id="S">S</h2>
</dt>


<dt><a href="mesa.html#mesa.time.StagedActivation.shuffle">shuffle (mesa.time.StagedActivation attribute)</a>
</dt>


<dt><a href="mesa.html#mesa.time.StagedActivation.shuffle_between_stages">shuffle_between_stages (mesa.time.StagedActivation attribute)</a>
</dt>


<dt><a href="mesa.html#mesa.time.SimultaneousActivation">SimultaneousActivation (class in mesa.time)</a>
</dt>


<dt><a href="mesa.html#mesa.space.SingleGrid">SingleGrid (class in mesa.space)</a>
</dt>

</dl></td>
<td style="width: 33%" valign="top"><dl>

<dt><a href="mesa.visualization.html#mesa.visualization.ModularVisualization.ModularServer.socket_handler">socket_handler (mesa.visualization.ModularVisualization.ModularServer attribute)</a>
</dt>

</dl></td>
<td style="width: 33%" valign="top"><dl>

<dt><a href="mesa.visualization.html#mesa.visualization.ModularVisualization.SocketHandler">SocketHandler (class in mesa.visualization.ModularVisualization)</a>
</dt>


<dt><a href="mesa.html#mesa.time.StagedActivation.stage_list">stage_list (mesa.time.StagedActivation attribute)</a>
</dt>


<dt><a href="mesa.html#mesa.time.StagedActivation.stage_time">stage_time (mesa.time.StagedActivation attribute)</a>
</dt>


<dt><a href="mesa.html#mesa.time.StagedActivation">StagedActivation (class in mesa.time)</a>
</dt>


<dt><a href="mesa.visualization.html#mesa.visualization.ModularVisualization.ModularServer.static_handler">static_handler (mesa.visualization.ModularVisualization.ModularServer attribute)</a>
</dt>

Expand All @@ -809,6 +837,10 @@ <h2 id="S">S</h2>
</dt>


<dt><a href="mesa.html#mesa.time.StagedActivation.step">(mesa.time.StagedActivation method)</a>
</dt>


<dt><a href="mesa.visualization.html#mesa.visualization.TextVisualization.TextVisualization.step">(mesa.visualization.TextVisualization.TextVisualization method)</a>
</dt>

Expand Down
15 changes: 7 additions & 8 deletions docs/_build/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link rel="top" title="Mesa .1 documentation" href="#" />
<link rel="next" title="Mesa: Agent-based modeling in Python 3+" href="" />
<link rel="next" title="Overview of Modules" href="overview.html" />
</head>
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
Expand All @@ -38,7 +38,7 @@ <h3>Navigation</h3>
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="#" title="Mesa: Agent-based modeling in Python 3+"
<a href="overview.html" title="Overview of Modules"
accesskey="N">next</a> |</li>
<li class="nav-item nav-item-0"><a href="#">Mesa .1 documentation</a> &raquo;</li>
</ul>
Expand Down Expand Up @@ -91,9 +91,8 @@ <h2>Contributing back to Mesa<a class="headerlink" href="#contributing-back-to-m
</ul>
<p><strong>Table of Contents</strong></p>
<div class="toctree-wrapper compound">
<ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="">Mesa: Agent-based modeling in Python 3+</a></li>
<li class="toctree-l1"><a class="reference internal" href="#indices-and-tables">Indices and tables</a></li>
<ul>
<li class="toctree-l1"><a class="reference internal" href="overview.html">Mesa overview</a></li>
<li class="toctree-l1"><a class="reference internal" href="intro-tutorial.html">Introduction to Mesa - Tutorial</a></li>
</ul>
</div>
Expand Down Expand Up @@ -125,8 +124,8 @@ <h3><a href="#">Table Of Contents</a></h3>
</ul>

<h4>Next topic</h4>
<p class="topless"><a href=""
title="next chapter">Mesa: Agent-based modeling in Python 3+</a></p>
<p class="topless"><a href="overview.html"
title="next chapter">Overview of Modules</a></p>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
Expand Down Expand Up @@ -161,7 +160,7 @@ <h3>Navigation</h3>
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="#" title="Mesa: Agent-based modeling in Python 3+"
<a href="overview.html" title="Overview of Modules"
>next</a> |</li>
<li class="nav-item nav-item-0"><a href="#">Mesa .1 documentation</a> &raquo;</li>
</ul>
Expand Down
Binary file modified docs/_build/html/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html/searchindex.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@
import sys
import os


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this PR was all tutorial. We can push this through, but can you tell me a little more about it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was left over from when RTD wasn't building this properly.

# Adding mock imports to see if this builds
from unittest.mock import MagicMock

class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
return Mock()

MOCK_MODULES = ['scipy', 'numpy', 'pandas']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

# End of mock

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down
Binary file added docs/images/tutorial/br_ginis.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial/dc_endwealth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial/dc_gini.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial/dc_oneagent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial/first_hist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial/multirun_hist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial/numpy_grid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial/viz_chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial/viz_empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial/viz_greycircles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial/viz_histogram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial/viz_redcircles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ If you would like to add a feature, please reach out via `ticket`_ or the `email
.. toctree::
:maxdepth: 1

Mesa overview <index>
Mesa overview <overview>
intro-tutorial


Expand Down
Loading