-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from brightway-lca/documentation_upgrade
Major Documentation Upgrade
- Loading branch information
Showing
14 changed files
with
93 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Usage | ||
|
||
`bw_graph_tools` has three main components: A graph traversal class `NewNodeEachVisitGraphTraversal`; a function to guess production exchanges using only `bw_processing` datapackages `guess_production_exchanges`; and a function to find the path from node `A` to node `B` with the largest amount of the reference product of `A`, `get_path_from_matrix` and it's sister `path_as_brightway_objects`. | ||
|
||
### `NewNodeEachVisitGraphTraversal` | ||
|
||
Normally we construct matrices and solve the resulting set of linear equations to get a life cycle inventory or impact assessment result. The matrix approach is elegant, in that it simultaneously solves all equations and handles cycles in the graph, and much faster than graph traversal. However, in some cases we want to actually traverse the supply chain graph and calculate the individual impact of visiting nodes at that point in the graph. Graph traversal's use cases include: | ||
|
||
* Distinguishing between different paths to the same object | ||
* Convolving temporal distributions | ||
|
||
If we add temporal information using `bw_temporalis`, then the same node can occur at different times depending on how the temporal dynamics its preceding path. For example: | ||
|
||
## Some Examples | ||
|
||
- [`1 - Spatiotemporal calculations.ipynb`](https://github.com/brightway-lca/from-the-ground-up/blob/327e2af95249135a71a57cfb3eb0c7d73f6e5239/spatiotemporal/1%20-%20Spatiotemporal%20calculations.ipynb#L16) | ||
- [`1 - Introduction.ipynb`](https://github.com/brightway-lca/from-the-ground-up/blob/327e2af95249135a71a57cfb3eb0c7d73f6e5239/temporal/1%20-%20Introduction.ipynb#L215) | ||
- [`Example usage.ipynb`](https://github.com/brightway-lca/bw_temporalis/blob/911a7729d5ac065bbae862df5c1381aa1058cf48/dev/Example%20usage.ipynb#L17) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: sphinx_bw_graph_tools | ||
channels: | ||
- conda-forge | ||
- nodefaults | ||
dependencies: | ||
# core functionality | ||
- python | ||
- ipython | ||
# sphinx | ||
- sphinx # core builder # https://anaconda.org/conda-forge/sphinx/files | ||
# theme and extensions | ||
- sphinx_rtd_theme # theme # https://anaconda.org/conda-forge/sphinx_rtd_theme/files | ||
- myst-parser # Markdown support # https://anaconda.org/conda-forge/myst-parser/files | ||
- sphinx-design # responsive web component support # https://anaconda.org/conda-forge/sphinx-design/files | ||
- sphinx-copybutton # for copy button in code blocks # https://anaconda.org/conda-forge/sphinx-copybutton/files | ||
- sphinx-autoapi # to build docs from source code instead of package import # https://anaconda.org/conda-forge/sphinx-autoapi/files | ||
- sphinx-notfound-page # custom 404 page # https://anaconda.org/conda-forge/sphinx-notfound-page/files | ||
- sphinx-copybutton # for copy button in code blocks # https://anaconda.org/conda-forge/sphinx-copybutton/files | ||
# build process | ||
- sphinx-autobuild # live-html support # https://anaconda.org/conda-forge/sphinx-autobuild/files |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
```{include} ../README.md | ||
--- | ||
end-before: <!-- github-only --> | ||
--- | ||
``` | ||
# Brightway Graph Tools | ||
|
||
[license]: license | ||
[contributor guide]: contributing | ||
[command-line reference]: usage | ||
[changelog]: changelog | ||
```{button-link} https://docs.brightway.dev | ||
:color: info | ||
:expand: | ||
:click-parent: | ||
{octicon}`light-bulb;1em` Brightway Graph Tools is a specialized package of the Brightway Software Framework | ||
``` | ||
|
||
```{toctree} | ||
--- | ||
hidden: | ||
maxdepth: 1 | ||
--- | ||
pages/usage | ||
Reference <pages/api> | ||
pages/contributing | ||
Code of Conduct <pages/codeofconduct> | ||
License <pages/license> | ||
Changelog <pages/changelog> | ||
``` | ||
self | ||
content/usage | ||
content/api | ||
content/changelog | ||
content/contributing | ||
content/codeofconduct | ||
content/license | ||
``` |
This file was deleted.
Oops, something went wrong.