Skip to main content

Dynamic MFA tool

Project description

aiphoria logo

GitHub Release GitHub Actions Workflow Status Tests Coverage GitHub License

Python package for assessing and visualizing dynamic wood material flows

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:

Special thanks

A huge thank you to the following people who made aiphoria better:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiphoria-0.9.6.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiphoria-0.9.6-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file aiphoria-0.9.6.tar.gz.

File metadata

  • Download URL: aiphoria-0.9.6.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aiphoria-0.9.6.tar.gz
Algorithm Hash digest
SHA256 468f54a3eea491244df15db8cbe6437abe75480e30c0f5d28ddd57156806efbf
MD5 e78c71acfb5b4a57b7f8f5684410d7b8
BLAKE2b-256 984a642cfcd498d0dda903f9bdc02edda3b3f3a48d3a125a6336bbf4fed0445b

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiphoria-0.9.6.tar.gz:

Publisher: publish-pypi.yaml on EuropeanForestInstitute/aiphoria

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aiphoria-0.9.6-py3-none-any.whl.

File metadata

  • Download URL: aiphoria-0.9.6-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.12

File hashes

Hashes for aiphoria-0.9.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7b711be6178458e4ecce4d757e54ad02ee9c8a9e4d9d6dceaabafa9d3830472e
MD5 4b6ecdcfe521d6a0738636a3f17e66d1
BLAKE2b-256 a2dd6b1444e39fa95abbf36ad49cbb4f011539b73f4b89f060646af24db7712c

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiphoria-0.9.6-py3-none-any.whl:

Publisher: publish-pypi.yaml on EuropeanForestInstitute/aiphoria

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page