Skip to content

Commit

Permalink
Py API docs (cyclus#226)
Browse files Browse the repository at this point in the history
LGTM!
thx @scopatz for putting this.
  • Loading branch information
scopatz authored and bam241 committed Jan 31, 2017
1 parent dc7e0a7 commit 22635de
Show file tree
Hide file tree
Showing 19 changed files with 171 additions and 73 deletions.
12 changes: 5 additions & 7 deletions source/arche/tutorial/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@ This tutorial has the following steps:
testing
input_files

.. ::
Given enough time, the following extra topics may be covered:

Given enough time, the following extra topics may be covered:

.. toctree::
:maxdepth: 1
.. toctree::
:maxdepth: 1

cyclist
dre
cyclist
dre

.. note::

Expand Down
Binary file added source/astatic/CVT-logo-250pix1.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 source/basics/projects.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ method developments purposes.
Consortium for Verification Technology
--------------------------------------

.. figure:: http://cvt.engin.umich.edu/wp-content/uploads/sites/173/2014/10/CVT-logo-250pix1.png
.. figure:: ../astatic/CVT-logo-250pix1.png
:align: right
:width: 100

Expand Down
4 changes: 2 additions & 2 deletions source/cite/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The following are presentations given about |cyclus|:

* `Cyclus: Next Generation Fuel Cycle Simulator <http://dx.doi.org/10.6084/m9.figshare.1278926>`_, presented at the Fuel Cycle Options Campaign meeting, 12/16/14, Las Vegas, NV
* `Market-Based and System-Wide Fuel Cycle Optimization <http://figshare.com/articles/Market_Based_and_System_Wide_Fuel_Cycle_Optimization/1278937>`_, presented at the Fuel Cycle Options Campaign meeting, 12/16/14, Las Vegas, NV



|Cyclus| Meetings and Tutorials
Expand All @@ -35,7 +35,7 @@ The |Cyclus| community will occasionally hold meetings and tutorials, with docum
:glob:

meetings/*

tutorials/*



Expand Down
13 changes: 7 additions & 6 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.pngmath', 'sphinx.ext.autodoc',
extensions = ['sphinx.ext.imgmath', 'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'numpydoc',
'cyclusagent', 'cloud_sptheme.ext.table_styling',
'cyclusagent', 'cloud_sptheme.ext.table_styling',
'sphinxcontrib.bibtex']

numpydoc_show_class_members = False
Expand All @@ -74,7 +74,8 @@
# built documents.
verout = ""
try:
verout = subprocess.check_output('cyclus --version', shell=True).split()
verout = subprocess.check_output('cyclus --version', shell=True,
universal_newlines=True).split()
except OSError:
warnings.warn("WARNING: Continuing without cyclus - will not include "
"agents in output", RuntimeWarning)
Expand All @@ -97,7 +98,7 @@

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = []
exclude_patterns = ['python/blank.rst']

# The reST default role (used for this markup: `text`) to use for all documents.
#default_role = None
Expand Down Expand Up @@ -291,11 +292,11 @@
#texinfo_show_urls = 'footnote'

rst_epilog = """
.. |cyclus| raw:: html
.. |cyclus| raw:: html
<span style="font-variant:small-caps;">Cyclus</span>
.. |Cyclus| raw:: html
.. |Cyclus| raw:: html
<span style="font-variant:small-caps;">Cyclus</span>
"""
17 changes: 12 additions & 5 deletions source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ simulation <fuel cycle simulator>` while providing a low barrier to entry for
new users and agent developers. |Cyclus| engages with potential module
developers and encourages them to join a vibrant community in an
:doc:`expanding ecosystem <basics/ecosystem>`. Users and developers are
always welcome and encouraged to use or contribute to the |cyclus| project.
always welcome and encouraged to use or contribute to the |cyclus| project.

The |Cyclus| project repository is located at http://github.com/cyclus/cyclus

Expand All @@ -39,16 +39,22 @@ News

**December 13, 2016:** :doc:`Cyclus v1.5.0 is released <previous/v1.5>`

**July 6-8, 2016:** :doc:`Technical workshop on Dynamic Fuel Cycle>` in Paris, France
**July 6-8, 2016:** Technical workshop on Dynamic Fuel Cycle in Paris, France

**August 13, 2015:** :doc:`Cyclus included in FY2016 workscopes for the NEUP program <news/fy16neup>`

**July 21-24, 2015:** Joint workshop with CLASS_ project held in Madison, WI

**June 10, 2015:** First Cyclus :doc:`user tutorial <user/tutorial/index>` and :doc:`developer tutorial <arche/tutorial/index>` are held at the 2015 ANS Annual Meeting in San Antonio, TX
**June 10, 2015:** First Cyclus :doc:`user tutorial <user/tutorial/index>` and :doc:`developer tutorial <arche/tutorial/index>` are held at the 2015 ANS Annual Meeting in San Antonio, TX

**June 7, 2015:** :doc:`Cyclus v1.3.1 is released <previous/v1.3>`

.. toctree::
:maxdepth: 1

news/fy16neup


Learn More
----------

Expand All @@ -59,6 +65,7 @@ Learn More
user/index
arche/index
kernel/index
python/index
cep/cep0
previous/index
cite/index
Expand Down Expand Up @@ -98,7 +105,7 @@ this page. It contains all submitted jobs - their status, output, and database
<div id="dashboard"></div>
<br>

<script>
<script>
var server = "http://cycrun.fuelcycle.org"
function submitJob() {
Expand Down Expand Up @@ -181,7 +188,7 @@ Support for this research has included funding received from:

.. image :: astatic/neup_logo_large.png
:height: 100 px
.. image :: astatic/AnlLogo.png
:height: 100 px
Expand Down
11 changes: 11 additions & 0 deletions source/python/blank.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _cyclus_pyapi_mod:

********************************************************************************
(``cyclus.mod``)
********************************************************************************

.. automodule:: cyclus.mod
:members:
:undoc-members:
:inherited-members:

11 changes: 11 additions & 0 deletions source/python/events.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _cyclus_pyapi_events:

********************************************************************************
Event Loop (``cyclus.events``)
********************************************************************************

.. automodule:: cyclus.events
:members:
:undoc-members:
:inherited-members:

35 changes: 35 additions & 0 deletions source/python/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.. summary Python Documentation for |Cyclus|
|Cyclus| Python Interface
=========================
This covers the Python bindings for |Cyclus| and related utilities.

Low-level Python Wrappers
-------------------------

.. toctree::
:maxdepth: 1

typesystem
lib
main


Python & C++ Interop Modules
----------------------------

.. toctree::
:glob:
:maxdepth: 1

events


Helpers & Utilities
----------------------------

.. toctree::
:glob:
:maxdepth: 1

jsoncpp
11 changes: 11 additions & 0 deletions source/python/jsoncpp.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _cyclus_pyapi_jsoncpp:

********************************************************************************
JSON C++ (``cyclus.jsoncpp``)
********************************************************************************

.. automodule:: cyclus.jsoncpp
:members:
:undoc-members:
:inherited-members:

11 changes: 11 additions & 0 deletions source/python/lib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _cyclus_pyapi_lib:

********************************************************************************
Cyclus Library Bindings (``cyclus.lib``)
********************************************************************************

.. automodule:: cyclus.lib
:members:
:undoc-members:
:inherited-members:

11 changes: 11 additions & 0 deletions source/python/main.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _cyclus_pyapi_main:

********************************************************************************
Main Command Lin Interface (``cyclus.main``)
********************************************************************************

.. automodule:: cyclus.main
:members:
:undoc-members:
:inherited-members:

11 changes: 11 additions & 0 deletions source/python/typesystem.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _cyclus_pyapi_typesystem:

********************************************************************************
Cyclus Type System (``cyclus.typesystem``)
********************************************************************************

.. automodule:: cyclus.typesystem
:members:
:undoc-members:
:inherited-members:

8 changes: 0 additions & 8 deletions source/user/cymetric/api/cyclus.rst

This file was deleted.

4 changes: 1 addition & 3 deletions source/user/cymetric/api/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Cymetric API
============
The following modules make up the cymetric package. Note that most of the
important stuff you can get directly from ``cymetric`` without needing to import
important stuff you can get directly from ``cymetric`` without needing to import
the module. For example, the following two imports are the same:

.. code-block:: python
Expand All @@ -15,7 +15,6 @@ the module. For example, the following two imports are the same:
.. toctree::
:maxdepth: 1

typesystem
schemas
metrics
root_metrics
Expand All @@ -27,6 +26,5 @@ the module. For example, the following two imports are the same:
.. toctree::
:maxdepth: 1

cyclus
main
tools
8 changes: 0 additions & 8 deletions source/user/cymetric/api/typesystem.rst

This file was deleted.

Loading

0 comments on commit 22635de

Please sign in to comment.