Dynamic MFA tool
Project description
Python package for assessing and visualizing dynamic wood material flows
ℹ️ This package is under continuous development
aiphoria is Python package that facilitates the assessment of wood materials flows, associated carbon stocks, and stock changes, as well as and their visualization over time. aiphoria builds on top of ODYM - Open Dynamic Material Systems Model.
Features:
aiphoria allows you to:
- Solve flows provided both in absolute and relative (%) values, for example semi-finished wood product statistics (absolute values) to end-uses (relative values)
- Conduct dynamic MFA as well as temporary carbon storage assessment
- Visualize material flows through a Sankey diagram and provided timestep.
Use cases:
aiphoria is ideal for:
- Any temporal and spatial situation where material systems want to be assessed
- Product sink/stock effects
Installation
aiphoria is available at Python Package Index (PyPi) and as source distribution in Github
Install from PyPi
pip install aiphoria
Install from GitHub
pip install git+https://github.com/EuropeanForestInstitute/aiphoria.git
How to use
Showcase
aiphoria includes helper function to showcase example scenario with visualizations.
Showcase / example scenario can be run by the following code:
from aiphoria.example import run_example
run_example(remove_existing_output_dir=True)
Network and Sankey visualizations are opened automatically in browser and output is generated
inside user home directory to directory called "aiphoria_example_scenario".
Advanced usage
For the users who are already familiar using aiphoria the package exposes function for running scenarios by using the one-liner:
from aiphoria.runner import run_scenarios
run_scenarios(path_to_settings_file="path/to/scenario/file.xlsx",
path_to_output_dir="~/scenario_result",
remove_existing_output_dir=False)
Using parameter path_to_output_dir overrides the output path defined in scenario file.
This makes easier to change target from Python script itself or when running multiple scenarios in batch.
Parameters:
- path_to_settings_file (string): Path to scenario settings file
- path_to_output_dir (string): Path to directory where results are saved
- remove_existing_output_dir: If True then existing output directory is deleted (defaults to False). If directory already exists then error is raised and execution is stopped
Documentation
Online documentation can be found in GitHub wiki.
Support:
If you have any questions or need help, do not hesitate to contact us:
- Cleo Orfanidou cleo.orfanidou@efi.int
- Janne Järvikylä janne.jarvikyla@efi.int
Special thanks
A huge thank you to the following people who made aiphoria better:
-
Gustavo Ezequiel Martinez (virtual flows, system testing)
- GitHub: GustavoEzMartinez
- Email: gustavoezequiel.martinez@vito.be
-
Arthur Jakobs (packaging, CI/CD)
- GitHub: jakobsarthur
- Email: artos.jakobs@psi.ch
Funding:
aiphoria developers / European Forest Institute receive funding from the European Union’s Horizon Europe Research and Innovation Programme ForestPaths (ID No 101056755), Monifun (ID No 101134991) and eco2adapt (ID No 101059498).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiphoria-0.9.2.tar.gz.
File metadata
- Download URL: aiphoria-0.9.2.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe64a43f11e51d0652783aeda4774f8faf3441772c5059dd7b6d98bbc2ea19b3
|
|
| MD5 |
7cce415222b27014895070bd6f3086ae
|
|
| BLAKE2b-256 |
4d3c9628f5a635fc129075eba802c1d0999f360a1e8b2233e284492507ad4bd1
|
Provenance
The following attestation bundles were made for aiphoria-0.9.2.tar.gz:
Publisher:
publish-pypi.yaml on EuropeanForestInstitute/aiphoria
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiphoria-0.9.2.tar.gz -
Subject digest:
fe64a43f11e51d0652783aeda4774f8faf3441772c5059dd7b6d98bbc2ea19b3 - Sigstore transparency entry: 1109813474
- Sigstore integration time:
-
Permalink:
EuropeanForestInstitute/aiphoria@0db2f89dbb3fe494383af632a08dee3bc610f0ed -
Branch / Tag:
refs/tags/v0.9.2 - Owner: https://github.com/EuropeanForestInstitute
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yaml@0db2f89dbb3fe494383af632a08dee3bc610f0ed -
Trigger Event:
release
-
Statement type:
File details
Details for the file aiphoria-0.9.2-py3-none-any.whl.
File metadata
- Download URL: aiphoria-0.9.2-py3-none-any.whl
- Upload date:
- Size: 2.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f964b7da98d3c68588b8c51e92cae8cc1f8dc99e0e5fc24813714ccbfc55dcff
|
|
| MD5 |
80e0870db0ec0a715d3bbcfb1d96d211
|
|
| BLAKE2b-256 |
e471a6576e923bde8054eb8df59908c22961f422ff60226567c722a8b2617223
|
Provenance
The following attestation bundles were made for aiphoria-0.9.2-py3-none-any.whl:
Publisher:
publish-pypi.yaml on EuropeanForestInstitute/aiphoria
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiphoria-0.9.2-py3-none-any.whl -
Subject digest:
f964b7da98d3c68588b8c51e92cae8cc1f8dc99e0e5fc24813714ccbfc55dcff - Sigstore transparency entry: 1109813478
- Sigstore integration time:
-
Permalink:
EuropeanForestInstitute/aiphoria@0db2f89dbb3fe494383af632a08dee3bc610f0ed -
Branch / Tag:
refs/tags/v0.9.2 - Owner: https://github.com/EuropeanForestInstitute
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yaml@0db2f89dbb3fe494383af632a08dee3bc610f0ed -
Trigger Event:
release
-
Statement type: