Skip to content

Commit

Permalink
Merge pull request #96 from brightway-lca/matrix_drawing_carousel
Browse files Browse the repository at this point in the history
Matrix drawing carousel
  • Loading branch information
TimoDiepers authored Sep 19, 2024
2 parents c8f9506 + 1d16c07 commit 0eedbc5
Show file tree
Hide file tree
Showing 13 changed files with 24,662 additions and 7 deletions.
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
"sphinx_favicon",
# copy button on code blocks
"sphinx_copybutton",
# carousels
"sphinx_carousel.carousel",
]

autoapi_dirs = ["../bw_timex"]
Expand Down
1,478 changes: 1,478 additions & 0 deletions docs/content/data/matrix0_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,484 changes: 1,484 additions & 0 deletions docs/content/data/matrix0_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,475 changes: 1,475 additions & 0 deletions docs/content/data/matrix1_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,476 changes: 1,476 additions & 0 deletions docs/content/data/matrix1_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,411 changes: 2,411 additions & 0 deletions docs/content/data/matrix2_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,412 changes: 2,412 additions & 0 deletions docs/content/data/matrix2_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,515 changes: 2,515 additions & 0 deletions docs/content/data/matrix3_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,516 changes: 2,516 additions & 0 deletions docs/content/data/matrix3_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4,420 changes: 4,420 additions & 0 deletions docs/content/data/matrix4_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4,421 changes: 4,421 additions & 0 deletions docs/content/data/matrix4_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 50 additions & 7 deletions docs/content/theory.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,21 +209,64 @@ created:
`TimexLCA.dynamic_inventory_df` contain the emissions of the system
per biosphere flow including its timestamp and its emitting process.

```{admonition} Example: Matrix modifications
````{admonition} Example: Matrix modifications
:class: admonition-example
For the simple system above, a schematic representation of the matrix
modifications looks like this:
~~~{image} data/matrix_stuff_light.svg
:class: only-light
:name: example-matrix-modifications
For the simple system above, these are the modifications we apply to the matrices:
:::{div} only-light
```{carousel}
:show_controls:
:show_indicators:
:show_dark:
:show_fade:
:data-bs-interval: false
~~~{image} data/matrix1_light.svg
:align: center
~~~
~~~{image} data/matrix2_light.svg
:align: center
~~~
~~~{image} data/matrix3_light.svg
:align: center
~~~
~~~{image} data/matrix4_light.svg
:align: center
~~~
```
:::
:::{div} only-dark
```{carousel}
:show_controls:
:show_indicators:
:show_fade:
:data-bs-interval: false
~~~{image} data/matrix1_dark.svg
:align: center
:class: only-dark
~~~
~~~{image} data/matrix2_dark.svg
:align: center
:class: only-dark
~~~
~~~{image} data/matrix_stuff_dark.svg
~~~{image} data/matrix3_dark.svg
:align: center
:class: only-dark
~~~
~~~{image} data/matrix4_dark.svg
:align: center
:class: only-dark
~~~
```
:::
</br>
The inventory information from the time-explicit databases is inserted into the matrices. For each specific point in time that product b is demanded, temporal markets are created, distributing the demand for b between the time-explicit databases. The dynamic biosphere matrix is created, containing the timing of emissions. You can see that the CO2 emission at process A occurs both in 2024 and 2025, based on the temporal distribution on this biosphere exchange.
```
````

## Static or dynamic impact assessment

Expand Down
2 changes: 2 additions & 0 deletions docs/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ dependencies:
- sphinx-copybutton=0.5.2 # for copy button in code blocks # https://anaconda.org/conda-forge/sphinx-copybutton/files
# build process
- sphinx-autobuild=2024.4.16 # live-html support # https://anaconda.org/conda-forge/sphinx-autobuild/files
- pip:
- sphinx-carousel=1.2.0 # for carousel support # https://pypi.org/project/sphinx-carousel/

0 comments on commit 0eedbc5

Please sign in to comment.