aiphoria 0.0.1__py3-none-any.whl → 0.8.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. aiphoria/__init__.py +59 -0
  2. aiphoria/core/__init__.py +55 -0
  3. aiphoria/core/builder.py +305 -0
  4. aiphoria/core/datachecker.py +1808 -0
  5. aiphoria/core/dataprovider.py +806 -0
  6. aiphoria/core/datastructures.py +1686 -0
  7. aiphoria/core/datavisualizer.py +431 -0
  8. aiphoria/core/datavisualizer_data/LICENSE +21 -0
  9. aiphoria/core/datavisualizer_data/datavisualizer_plotly.html +5561 -0
  10. aiphoria/core/datavisualizer_data/pako.min.js +2 -0
  11. aiphoria/core/datavisualizer_data/plotly-3.0.0.min.js +3879 -0
  12. aiphoria/core/flowmodifiersolver.py +1754 -0
  13. aiphoria/core/flowsolver.py +1472 -0
  14. aiphoria/core/logger.py +113 -0
  15. aiphoria/core/network_graph.py +136 -0
  16. aiphoria/core/network_graph_data/ECHARTS_LICENSE +202 -0
  17. aiphoria/core/network_graph_data/echarts_min.js +45 -0
  18. aiphoria/core/network_graph_data/network_graph.html +76 -0
  19. aiphoria/core/network_graph_data/network_graph.js +1391 -0
  20. aiphoria/core/parameters.py +269 -0
  21. aiphoria/core/types.py +20 -0
  22. aiphoria/core/utils.py +362 -0
  23. aiphoria/core/visualizer_parameters.py +7 -0
  24. aiphoria/data/example_scenario.xlsx +0 -0
  25. aiphoria/example.py +66 -0
  26. aiphoria/lib/docs/dynamic_stock.py +124 -0
  27. aiphoria/lib/odym/modules/ODYM_Classes.py +362 -0
  28. aiphoria/lib/odym/modules/ODYM_Functions.py +1299 -0
  29. aiphoria/lib/odym/modules/__init__.py +1 -0
  30. aiphoria/lib/odym/modules/dynamic_stock_model.py +808 -0
  31. aiphoria/lib/odym/modules/test/DSM_test_known_results.py +762 -0
  32. aiphoria/lib/odym/modules/test/ODYM_Classes_test_known_results.py +107 -0
  33. aiphoria/lib/odym/modules/test/ODYM_Functions_test_known_results.py +136 -0
  34. aiphoria/lib/odym/modules/test/__init__.py +2 -0
  35. aiphoria/runner.py +678 -0
  36. aiphoria-0.8.0.dist-info/METADATA +119 -0
  37. aiphoria-0.8.0.dist-info/RECORD +40 -0
  38. {aiphoria-0.0.1.dist-info → aiphoria-0.8.0.dist-info}/WHEEL +1 -1
  39. aiphoria-0.8.0.dist-info/licenses/LICENSE +21 -0
  40. aiphoria-0.0.1.dist-info/METADATA +0 -5
  41. aiphoria-0.0.1.dist-info/RECORD +0 -5
  42. {aiphoria-0.0.1.dist-info → aiphoria-0.8.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,119 @@
1
+ Metadata-Version: 2.4
2
+ Name: aiphoria
3
+ Version: 0.8.0
4
+ Summary: Dynamic MFA tool
5
+ Author-email: Janne Järvikylä <janne.jarvikyla@efi.int>
6
+ Maintainer-email: Janne Järvikylä <janne.jarvikyla@efi.int>
7
+ License-Expression: MIT
8
+ Project-URL: Homepage, https://github.com/EuropeanForestInstitute/aiphoria
9
+ Project-URL: Issues, https://github.com/EuropeanForestInstitute/aiphoria/issues
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Operating System :: OS Independent
13
+ Requires-Python: >=3.9
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: numpy
17
+ Requires-Dist: pandas==2.2.2
18
+ Requires-Dist: Pillow>=10.0.0
19
+ Requires-Dist: plotly==6.0.0
20
+ Requires-Dist: openpyxl==3.1.3
21
+ Requires-Dist: scipy
22
+ Requires-Dist: matplotlib
23
+ Requires-Dist: xlrd
24
+ Requires-Dist: xlwt
25
+ Requires-Dist: tqdm
26
+ Requires-Dist: myst-parser
27
+ Requires-Dist: sphinx-rtd-theme
28
+ Requires-Dist: IPython
29
+ Requires-Dist: xlsxwriter
30
+ Requires-Dist: importlib
31
+ Dynamic: license-file
32
+
33
+ <h1>
34
+ <picture>
35
+ <source media="(prefers-color-scheme: dark)" srcset="docs/_static/aiphoria-logo.png" height="50">
36
+ <img alt="aiphoria logo" src="https://raw.githubusercontent.com/EuropeanForestInstitute/aiphoria/main/docs/_static/aiphoria-logo.png" height="160">
37
+ </picture>
38
+ </h1>
39
+
40
+ ## Python package for assessing and visualizing dynamic wood material flows
41
+
42
+ > ℹ️ _This package is under continuous development_
43
+
44
+ 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.
45
+ **aiphoria** builds on top of [ODYM - Open Dynamic Material Systems Model](https://github.com/IndEcol/ODYM).
46
+
47
+ ## Features:
48
+ **aiphoria** allows you to:
49
+ - **Solve flows** provided both in absolute and relative (%) values, for example semi-finished wood product statistics (absolute values) to end-uses (relative values)
50
+ - **Conduct dynamic MFA as well as temporary carbon storage assessment**
51
+ - **Visualize material flows** through a Sankey diagram and provided timestep.
52
+
53
+ ## Use cases:
54
+
55
+ **aiphoria** is ideal for:
56
+ - **Any temporal and spatial situation where material systems want to be assessed**
57
+ - **Product sink/stock effects**
58
+
59
+
60
+ # Installation
61
+
62
+ **aiphoria** is available at Python Package Index (PyPi) and as source distribution in [Github](https://github.com/EuropeanForestInstitute/aiphoria/wiki)<br>
63
+
64
+ ## Install from PyPi
65
+ ```
66
+ pip install aiphoria
67
+ ```
68
+
69
+ ## Install from GitHub
70
+ ```
71
+ pip install git+https://github.com/EuropeanForestInstitute/aiphoria.git
72
+ ```
73
+
74
+ # How to use
75
+
76
+ ## Showcase
77
+ **aiphoria** includes helper function to showcase example scenario with visualizations.<br>
78
+ Showcase / example scenario can be run by the following code:
79
+
80
+ ```python
81
+ from aiphoria.example import run_example
82
+
83
+ run_example(remove_existing_output_dir=True)
84
+ ```
85
+
86
+ Network and Sankey visualizations are opened automatically in browser and output is generated<br>
87
+ inside user home directory to directory called "aiphoria_example_scenario".<br>
88
+
89
+ ## Advanced usage
90
+ For the users who are already familiar using **aiphoria** the package exposes function for running
91
+ scenarios by using the one-liner:
92
+
93
+ ```python
94
+ from aiphoria.runner import run_scenarios
95
+
96
+ run_scenarios(path_to_settings_file="path/to/scenario/file.xlsx",
97
+ path_to_output_dir="~/scenario_result",
98
+ remove_existing_output_dir=False)
99
+ ```
100
+
101
+ Using parameter **path_to_output_dir** overrides the output path defined in scenario file.<br>
102
+ This makes easier to change target from Python script itself or when running multiple scenarios in batch.<br>
103
+ Parameters:
104
+ - path_to_settings_file (string): Path to scenario settings file
105
+ - path_to_output_dir (string): Path to directory where results are saved
106
+ - 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
107
+
108
+ ## Documentation
109
+
110
+ Online documentation can be found in [GitHub wiki](https://github.com/EuropeanForestInstitute/aiphoria/wiki).
111
+
112
+
113
+ ## Support:
114
+
115
+ If you have any questions or need help, do not hesitate to contact us:
116
+ - [cleo.orfanidou@efi.int](mailto:cleo.orfanidou@efi.int)
117
+ - [janne.jarvikyla@efi.int](mailto:janne.jarvikyla@efi.int)
118
+
119
+
@@ -0,0 +1,40 @@
1
+ aiphoria/__init__.py,sha256=sLmNlsKsxrXYkEs138mmCVprV_JVHEebtWce8erZD1A,1198
2
+ aiphoria/example.py,sha256=nfAVgXUFiMd3RKCYhMjd9pTo1vtqSpEjrCLnkoVn8z8,2625
3
+ aiphoria/runner.py,sha256=Oo1o9F3oWSuMhoJ59oytcRe2Y-VnsvZtApBMue99kP4,33626
4
+ aiphoria/core/__init__.py,sha256=DEw_CnXbEjkIJUvXF2E52e6RHwljlZeLS7-uGFPfOzo,1147
5
+ aiphoria/core/builder.py,sha256=PS44eKqphdSBUdmGGOoMQ3BQ3LA1IV7l0RO0hzXB8UQ,12845
6
+ aiphoria/core/datachecker.py,sha256=boiz5g7_QGsPcm4fU0VJ3o1_-yUjQdpcgQxP2OFOSZQ,86832
7
+ aiphoria/core/dataprovider.py,sha256=l_yIyvPEkI1TqfNp6BUYMbJzSbaN1Qu8lSqbRF7Er3o,34476
8
+ aiphoria/core/datastructures.py,sha256=F6kXMXXGS2eExfKImjRkMw447rF65_3FdKgst0wDkyE,50484
9
+ aiphoria/core/datavisualizer.py,sha256=QqPkZyHGGSfu2bi_OCU518AorPzZpZ60mnYTxhV5_-4,21080
10
+ aiphoria/core/flowmodifiersolver.py,sha256=IuGrB92I36M5GbjcMf08wZIJRtCre3jVMOlwOnYTEXY,97164
11
+ aiphoria/core/flowsolver.py,sha256=DM2oqgt2LR_KDoEU9zk3ZdujESgIJCh4gqqXN2pglGw,67068
12
+ aiphoria/core/logger.py,sha256=qTCju8Ad6KnFFWaQ-Jx14lXTikrAHEIKW_dFVXJGH1I,2838
13
+ aiphoria/core/network_graph.py,sha256=cP2WKN7ogZY8ohR7UvYVTIwdXBONxs2s1QrjqIqIf88,6183
14
+ aiphoria/core/parameters.py,sha256=RAYWng9AtLiRgI1o_No5_V7k55HXvJMtfsu5y2XZEQ0,9121
15
+ aiphoria/core/types.py,sha256=xdJYAWMlENHHCvg7oCXTWJ3ISbvL8wvJzw2LRGLE8wg,392
16
+ aiphoria/core/utils.py,sha256=L1u8W4FH6vk-iWBo-3AfCnRzWSpTcGiFGE35jGKtQmY,14502
17
+ aiphoria/core/visualizer_parameters.py,sha256=R4II0H63KKkYhcg2bb_QgwsNNX0w9R24FoGpYyUAsV8,221
18
+ aiphoria/core/datavisualizer_data/LICENSE,sha256=VH8Fr9fxI7Lk0rGUHz78igso-4jJoe_fzZ9E3nXlRgY,1105
19
+ aiphoria/core/datavisualizer_data/datavisualizer_plotly.html,sha256=-rWy2GIRpBiXwQxL6GBd3kcV1Y6XIgpLF8H3Vm492_k,281351
20
+ aiphoria/core/datavisualizer_data/pako.min.js,sha256=e3o7jbTXtlhGuAfxMJaIqJVZYdveVThpSGKmxcvJMs8,46859
21
+ aiphoria/core/datavisualizer_data/plotly-3.0.0.min.js,sha256=B9O0NR9uvNnjiQ5XoeDwysQzYXgYbmgbX_bj9EyJop0,4652792
22
+ aiphoria/core/network_graph_data/ECHARTS_LICENSE,sha256=SbvpEU5JIU3yzMMkyzrI0dGqHDoJR_lMKGdl6GZHsy4,11558
23
+ aiphoria/core/network_graph_data/echarts_min.js,sha256=BuNYaR9_pqhRQF2KveiZegb5tro8uZa6C4v4BroB7j8,1030929
24
+ aiphoria/core/network_graph_data/network_graph.html,sha256=ocuNGjhIayVGd5vd6zHNJCCN2DhjFAkq_R7WwryfIF8,3502
25
+ aiphoria/core/network_graph_data/network_graph.js,sha256=UjS46PJs01fxhtcQlxQ1vbN_SyhjbxU6syWCLLtS2lo,49109
26
+ aiphoria/data/example_scenario.xlsx,sha256=0hrA-3jk049D4aey76cpa74aQtnUU1vqzkjiS8c0MUE,130840
27
+ aiphoria/lib/docs/dynamic_stock.py,sha256=Z3rcBWKTrsFCiwqB8OhW27LVPRtYQ6KJocDfb51ppI4,5163
28
+ aiphoria/lib/odym/modules/ODYM_Classes.py,sha256=a2r-0QbBKpsKFo8vdcI6w6RPsP-t2OktbNHBegU_jac,20986
29
+ aiphoria/lib/odym/modules/ODYM_Functions.py,sha256=QXGQBYHxouWsGna0NcH2SDCNY6ryOxJL4hPAP7yMuOU,61171
30
+ aiphoria/lib/odym/modules/__init__.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
31
+ aiphoria/lib/odym/modules/dynamic_stock_model.py,sha256=F5b1OCs8AdAzeTb8tKnZbh5L-yvcTFtgQxpKOhC0gTw,51580
32
+ aiphoria/lib/odym/modules/test/DSM_test_known_results.py,sha256=JCJsR2MMFleCslAc_-uZXT9kvLIqSJE7Zj50ycpoLGg,52947
33
+ aiphoria/lib/odym/modules/test/ODYM_Classes_test_known_results.py,sha256=3g9l1ydkxjjL8Puy0AvDkpEdxHQVK_Vg8tM7Gy3VSfA,6015
34
+ aiphoria/lib/odym/modules/test/ODYM_Functions_test_known_results.py,sha256=TMd-bOU3Q-UNWBG8Ou3Nr1NatxHrK2dVoLVE1EfUbEY,5758
35
+ aiphoria/lib/odym/modules/test/__init__.py,sha256=M9j1NuexsmXRO0O_LLRNrLF7fEfPAHWIxm90hC6gV3I,27
36
+ aiphoria-0.8.0.dist-info/licenses/LICENSE,sha256=FAUUjPq0h-9beaGzhfVS_S_IDSpghGGAIq8lglo_gK4,1103
37
+ aiphoria-0.8.0.dist-info/METADATA,sha256=5T4uhfqbLaw8rSy28bXdJlsLYf4Bubv8eY8KsL1NM4Q,4389
38
+ aiphoria-0.8.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
39
+ aiphoria-0.8.0.dist-info/top_level.txt,sha256=sSoiLUL4dyCtQmvkcRN01QT8p9vmFo5hEP6UZa5SW30,9
40
+ aiphoria-0.8.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 European Forest Institute
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,5 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: aiphoria
3
- Version: 0.0.1
4
- Summary: Reserved package name
5
- Author: EuropeanForestInstitute
@@ -1,5 +0,0 @@
1
- aiphoria/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- aiphoria-0.0.1.dist-info/METADATA,sha256=jB_oGJu5xftw7_ZMVkyPW-Kaa-Hkv-RCBkZ2KCqlrwI,120
3
- aiphoria-0.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
4
- aiphoria-0.0.1.dist-info/top_level.txt,sha256=sSoiLUL4dyCtQmvkcRN01QT8p9vmFo5hEP6UZa5SW30,9
5
- aiphoria-0.0.1.dist-info/RECORD,,