Skip to content

Commit a0fe8d0

Browse files
author
committed
Update documentation
0 parents  commit a0fe8d0

188 files changed

Lines changed: 60877 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.buildinfo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: ddc45f23f34f335fc7531758647eb41e
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7

.nojekyll

Whitespace-only changes.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Acknowledgments
2+
Appa LCA is developed by the DSCIN department of [CEA List](https://list.cea.fr/en/).
3+
4+
The development of Appa LCA has been funded by the [DEEPGREEN](https://deepgreen.ai/) project, a project supported by the French government grant managed by the Agence Nationale de la Recherche under the [France 2030](https://www.economie.gouv.fr/france-2030) program.
5+
6+
The authors would like to thank Bénédicte ROBIN for her participation in maturing Appa LCA.
7+
8+
<img src="../_static/about/list.jpg" alt="" width="95"/>
9+
10+
<img src="../_static/about/deepgreen.png" alt="" width="70">
11+
12+
<img src="../_static/about/france_2023.jpg" alt="" width="50"/>
13+
14+
## Code contributors
15+
16+
- Maxime PÉRALTA (CEA/List/DSCIN/LIIM)
17+
- Anne-Lore MONTAGNE (CEA/List/DILS/LIDEO)
18+
- Romain BOSSY (CEA/List/DSCIN/LIIM)
19+
- Madeleine ABERNOT (CEA/List/DSCIN/LIIM)

_sources/about/community.md.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Community
2+
3+
## I have a problem or a question
4+
If you encounter a problem while using Appa LCA, you can try to see if it is already known in the [FAQ](faq.md) section.
5+
6+
If not, the Issues tab of Appa Build and Appa Run repositories have all chances to be more up to date.
7+
If your issue is not known, its also there that you can create a new issue so that we are aware of it.
8+
9+
If you have a question or suggestion, we invite you to use the discussion tabs of both Appa Build and Appa Run.
10+
11+
If you're not sure whether your issue or discussion point falls under Appa Build or Appa Run, please prefer Appa Build the repository issues and discussion tabs.
12+
13+
## I want to contribute
14+
You're very welcomed to contribute to the Appa Build or Appa Run source code, both to fix bugs or add new features.
15+
16+
Feel free to [reach us](mailto:appalca@cea.fr) if you want to collaborate with us in the development of Appa LCA.

_sources/about/faq.md.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Frequently Asked Questions
2+
3+
## Known limitations
4+
5+
We are aware of some limitations and plan to address them.
6+
If any of these limitations are limiting problem for you, please feel free to contact us to let us know so we can either prioritize fixing the limitation or help you fix it.
7+
8+
### Versions
9+
Appa Build currently works with Brightway25 and lca_algebraic_bw25.
10+
It is tested with Python 3.11.
11+
12+
### Background databases
13+
At the moment only the EcoInvent background database is supported, as we haven't been able to access and test other databases supported by Brightway.
14+
Data from other databases can nonetheless be imported at the impact level.
15+
16+
### Methods
17+
Appa Run uses *Enum* to associate Brightway method names with comprehensive strings.
18+
We currently only implemented an Enum for PEF v3.0 and v3.1 LCIA methods, and plan to support other methods as well.
19+
20+
You can easily extend the mapping to other LCIA methods. If you do so, it may be a good idea of contribution and could be integrated into Appa LCA's source code.
21+
22+
## Known issues
23+
We are aware of some issues and bugs. We list them here to keep you informed until we manage to solve them.

_sources/about/index.md.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# About
2+
3+
```{toctree}
4+
:caption: About
5+
:maxdepth: 2
6+
:hidden:
7+
reference.md
8+
faq.md
9+
community.md
10+
acknowledgments.md
11+
```
12+
13+
<meta http-equiv="refresh" content="0; reference.html">

_sources/about/reference.md.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Reference
2+
The journal article for Appa LCA has been submitted to the editor.
3+
In the meantime, if you communicate about your work using Appa Build and/or Appa Run, you can cite Appa LCA using:
4+
5+
```
6+
Peralta, M. (2024, March). Integrating Screening Life Cycle Assessment in Digital System design flow to enable Eco-design. In Date 2024-W01 Eco-ES: Eco-design and circular economy of Electronic Systems.
7+
```
8+
9+
But please come back to check if the journal paper DOI is available before submitting :)
10+
11+
Please also send an email to [_appalca@cea.fr_](mailto:appalca@cea.fr). It's always interesting to know how this work is being used, and can also motivate us to put more resources into development.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
appabuild.cli.database
2+
======================
3+
4+
.. py:module:: appabuild.cli.database
5+
6+
7+
Attributes
8+
----------
9+
10+
.. autoapisummary::
11+
12+
appabuild.cli.database.app
13+
14+
15+
Functions
16+
---------
17+
18+
.. autoapisummary::
19+
20+
appabuild.cli.database.generate_eime_v6
21+
22+
23+
Module Contents
24+
---------------
25+
26+
.. py:function:: generate_eime_v6(eime_v6_impacts_export_path: str, datasets_description_path: str, output_path: str)
27+
28+
Generate yaml datasets readily usable by Appa Build from config file and
29+
Eime V6 impact exports. To generate the adequate export file, create a new Eime V6
30+
project, add a single phase (no particular phase name required), and add a copy of
31+
every dataset you want to export. Then, go to analysis page, tick all required PEF
32+
impact assessment method, and export the result as a xlsx file.
33+
Configuration file should contain all other information of the datasets you want
34+
to generate. Common fields across all datasets can be set once in a "default"
35+
dict. Specific fields can be provided as a list in a "datasets" dict. Each dataset
36+
should have a "name_in_export" key, which value is the name of the corresponding
37+
dataset in Eime V6 export.
38+
:param eime_v6_impacts_export_path: Eime V6 impact exports
39+
:param datasets_description_path: should contain all other information of the
40+
datasets you want to generate
41+
:param output_path: directory to save yaml files.
42+
:return:
43+
44+
45+
.. py:data:: app
46+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
appabuild.cli
2+
=============
3+
4+
.. py:module:: appabuild.cli
5+
6+
7+
Submodules
8+
----------
9+
10+
.. toctree::
11+
:maxdepth: 1
12+
13+
/api/appabuild/cli/database/index
14+
/api/appabuild/cli/lca/index
15+
/api/appabuild/cli/main/index
16+
17+
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
appabuild.cli.lca
2+
=================
3+
4+
.. py:module:: appabuild.cli.lca
5+
6+
7+
Attributes
8+
----------
9+
10+
.. autoapisummary::
11+
12+
appabuild.cli.lca.app
13+
14+
15+
Functions
16+
---------
17+
18+
.. autoapisummary::
19+
20+
appabuild.cli.lca.build
21+
appabuild.cli.lca.graph
22+
appabuild.cli.lca.validate_foreground_datasets
23+
appabuild.cli.lca.validate_size
24+
appabuild.cli.lca.validate_type
25+
26+
27+
Module Contents
28+
---------------
29+
30+
.. py:function:: build(appabuild_config_path: Annotated[Optional[str], typer.Argument(help='AppaBuild environment configuration file, required unless --no-init is specified')], lca_config_path: Annotated[str, typer.Argument(help='LCA configuration file')], init: Annotated[bool, typer.Option(help='initialize AppaBuild environment')] = True)
31+
32+
Build an impact model and save it to the disk.
33+
An AppaBuild environment is initialized (background and foreground databases), unless --no-init is specified.
34+
35+
36+
37+
.. py:function:: graph(path: Annotated[str, typer.Argument(help='Root path of foreground datasets')], fu_name: Annotated[str, typer.Argument(help='Name of the root dataset (without its file extension)')], type: Annotated[str, typer.Option(help='Type of the output image, can only be png or svg, the default type is png', callback=validate_type)] = 'png', width: Annotated[int, typer.Option(help='Width of the output image', callback=validate_size)] = 750, height: Annotated[int, typer.Option(help='Height of the output image', callback=validate_size)] = 750, sensitive: Annotated[bool, typer.Option(help='If the data used to build the graph are sensitive')] = True)
38+
39+
Generate a mermaid graph from a set of foreground datasets and export it in an image file (PNG or SVG format).
40+
:param path: root path of the foreground datasets used to build the graph.
41+
:param fu_name: name of the dataset that will be the root of the graph.
42+
:param type: type of the output image, can only be png or svg.
43+
:param width: width of the output image.
44+
:param height: height of the output image.
45+
:param sensitive: if true, ask with a prompt if the data used to build the graph are sensitive.
46+
47+
48+
49+
.. py:function:: validate_foreground_datasets(datasets_root: Annotated[str, typer.Argument(help='Root path of a set of foreground datasets.')])
50+
51+
Validates a folder of foreground datasets. Show an error message for each invalid dataset.
52+
:param datasets_root: Root path of a set of foreground datasets.
53+
54+
55+
56+
.. py:function:: validate_size(size: int) -> int
57+
58+
.. py:function:: validate_type(type: str) -> str
59+
60+
.. py:data:: app
61+

0 commit comments

Comments
 (0)