Skip to content

Commit

Permalink
API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed Jan 18, 2022
1 parent c22de08 commit fb66fe7
Show file tree
Hide file tree
Showing 10 changed files with 853 additions and 114 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# sharrow
numba for ActivitySim-style spec files

## Building the documentation

Building the documentation for sharrow requires JupyterBook.

```shell
jupyterbook build docs
```
9 changes: 9 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
title: sharrow documentation
author: Cambridge Systematics, Inc.
logo: logo.png
copyright: "2022" # Copyright year to be placed in the footer

# Force re-execution of notebooks on each build.
# See https://jupyterbook.org/content/execute.html
Expand All @@ -26,3 +27,11 @@ repository:
html:
use_issues_button: true
use_repository_button: true

sphinx:
extra_extensions:
- 'sphinx.ext.autodoc'
- 'sphinx.ext.napoleon'
- 'sphinx.ext.viewcode'
config:
add_module_names: False
1 change: 1 addition & 0 deletions docs/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ format: jb-book
root: intro
chapters:
- file: walkthrough
- file: api
73 changes: 73 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
API Reference
=============

--------------------------------------------------------------------------------
DataTree
--------------------------------------------------------------------------------
.. autoclass:: sharrow.DataTree

Attributes
~~~~~~~~~~
.. autoattribute:: sharrow.DataTree.root_node_name
.. autoattribute:: sharrow.DataTree.subspaces
.. autoattribute:: sharrow.DataTree.relationships_are_digitized

setup_flow
~~~~~~~~~~
.. automethod:: sharrow.DataTree.setup_flow

datasets
~~~~~~~~
.. automethod:: sharrow.DataTree.add_dataset
.. automethod:: sharrow.DataTree.add_relationship
.. automethod:: sharrow.DataTree.replace_datasets

digitization
~~~~~~~~~~~~
.. automethod:: sharrow.DataTree.digitize_relationships



--------------------------------------------------------------------------------
Relationship
--------------------------------------------------------------------------------
.. autoclass:: sharrow.Relationship

Attributes
~~~~~~~~~~
.. autoattribute:: sharrow.Relationship.parent_data
.. autoattribute:: sharrow.Relationship.parent_name
.. autoattribute:: sharrow.Relationship.child_data
.. autoattribute:: sharrow.Relationship.child_name
.. autoattribute:: sharrow.Relationship.indexing
.. autoattribute:: sharrow.Relationship.analog



--------------------------------------------------------------------------------
Flow
--------------------------------------------------------------------------------
.. autoclass:: sharrow.Flow

load
~~~~
.. automethod:: sharrow.Flow.load
.. automethod:: sharrow.Flow.load_dataframe
.. automethod:: sharrow.Flow.load_dataarray

dot
~~~
.. automethod:: sharrow.Flow.dot
.. automethod:: sharrow.Flow.dot_dataarray

mnl_draws
~~~~~~~~~
.. automethod:: sharrow.Flow.mnl_draws




--------------------------------------------------------------------------------
Dataset
--------------------------------------------------------------------------------
.. autoclass:: sharrow.Dataset
Loading

0 comments on commit fb66fe7

Please sign in to comment.