aiphoria 0.0.1__tar.gz → 0.8.0__tar.gz
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.
- aiphoria-0.8.0/LICENSE +21 -0
- aiphoria-0.8.0/MANIFEST.in +19 -0
- aiphoria-0.8.0/PKG-INFO +119 -0
- aiphoria-0.8.0/README.md +87 -0
- aiphoria-0.8.0/pyproject.toml +65 -0
- aiphoria-0.8.0/src/aiphoria/__init__.py +59 -0
- aiphoria-0.8.0/src/aiphoria/core/__init__.py +55 -0
- aiphoria-0.8.0/src/aiphoria/core/builder.py +305 -0
- aiphoria-0.8.0/src/aiphoria/core/datachecker.py +1808 -0
- aiphoria-0.8.0/src/aiphoria/core/dataprovider.py +806 -0
- aiphoria-0.8.0/src/aiphoria/core/datastructures.py +1686 -0
- aiphoria-0.8.0/src/aiphoria/core/datavisualizer.py +431 -0
- aiphoria-0.8.0/src/aiphoria/core/datavisualizer_data/LICENSE +21 -0
- aiphoria-0.8.0/src/aiphoria/core/datavisualizer_data/datavisualizer_plotly.html +5561 -0
- aiphoria-0.8.0/src/aiphoria/core/datavisualizer_data/pako.min.js +2 -0
- aiphoria-0.8.0/src/aiphoria/core/datavisualizer_data/plotly-3.0.0.min.js +3879 -0
- aiphoria-0.8.0/src/aiphoria/core/flowmodifiersolver.py +1754 -0
- aiphoria-0.8.0/src/aiphoria/core/flowsolver.py +1472 -0
- aiphoria-0.8.0/src/aiphoria/core/logger.py +113 -0
- aiphoria-0.8.0/src/aiphoria/core/network_graph.py +136 -0
- aiphoria-0.8.0/src/aiphoria/core/network_graph_data/ECHARTS_LICENSE +202 -0
- aiphoria-0.8.0/src/aiphoria/core/network_graph_data/echarts_min.js +45 -0
- aiphoria-0.8.0/src/aiphoria/core/network_graph_data/network_graph.html +76 -0
- aiphoria-0.8.0/src/aiphoria/core/network_graph_data/network_graph.js +1391 -0
- aiphoria-0.8.0/src/aiphoria/core/parameters.py +269 -0
- aiphoria-0.8.0/src/aiphoria/core/types.py +20 -0
- aiphoria-0.8.0/src/aiphoria/core/utils.py +362 -0
- aiphoria-0.8.0/src/aiphoria/core/visualizer_parameters.py +7 -0
- aiphoria-0.8.0/src/aiphoria/data/example_scenario.xlsx +0 -0
- aiphoria-0.8.0/src/aiphoria/example.py +66 -0
- aiphoria-0.8.0/src/aiphoria/lib/docs/dynamic_stock.py +124 -0
- aiphoria-0.8.0/src/aiphoria/lib/odym/modules/ODYM_Classes.py +362 -0
- aiphoria-0.8.0/src/aiphoria/lib/odym/modules/ODYM_Functions.py +1299 -0
- aiphoria-0.8.0/src/aiphoria/lib/odym/modules/__init__.py +1 -0
- aiphoria-0.8.0/src/aiphoria/lib/odym/modules/dynamic_stock_model.py +808 -0
- aiphoria-0.8.0/src/aiphoria/lib/odym/modules/test/DSM_test_known_results.py +762 -0
- aiphoria-0.8.0/src/aiphoria/lib/odym/modules/test/ODYM_Classes_test_known_results.py +107 -0
- aiphoria-0.8.0/src/aiphoria/lib/odym/modules/test/ODYM_Functions_test_known_results.py +136 -0
- aiphoria-0.8.0/src/aiphoria/lib/odym/modules/test/__init__.py +2 -0
- aiphoria-0.8.0/src/aiphoria/runner.py +678 -0
- aiphoria-0.8.0/src/aiphoria.egg-info/PKG-INFO +119 -0
- aiphoria-0.8.0/src/aiphoria.egg-info/SOURCES.txt +45 -0
- aiphoria-0.8.0/src/aiphoria.egg-info/requires.txt +15 -0
- aiphoria-0.8.0/tests/test_aiphoria.py +141 -0
- aiphoria-0.0.1/PKG-INFO +0 -5
- aiphoria-0.0.1/aiphoria/__init__.py +0 -0
- aiphoria-0.0.1/aiphoria.egg-info/PKG-INFO +0 -5
- aiphoria-0.0.1/aiphoria.egg-info/SOURCES.txt +0 -6
- aiphoria-0.0.1/pyproject.toml +0 -11
- {aiphoria-0.0.1 → aiphoria-0.8.0}/setup.cfg +0 -0
- {aiphoria-0.0.1 → aiphoria-0.8.0/src}/aiphoria.egg-info/dependency_links.txt +0 -0
- {aiphoria-0.0.1 → aiphoria-0.8.0/src}/aiphoria.egg-info/top_level.txt +0 -0
aiphoria-0.8.0/LICENSE
ADDED
|
@@ -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.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
recursive-include src/aiphoria/core/datavisualizer_data *
|
|
2
|
+
recursive-include src/aiphoria/core/network_graph_data *
|
|
3
|
+
recursive-include src/aiphoria/data example_scenario.xlsx
|
|
4
|
+
|
|
5
|
+
prune src/aiphoria/core/datavisualizer_data/.idea
|
|
6
|
+
prune src/aiphoria/core/datavisualizer_data/.vscode
|
|
7
|
+
|
|
8
|
+
prune src/aiphoria/core/network_graph_data/.idea
|
|
9
|
+
prune src/aiphoria/core/network_graph_data/.vscode
|
|
10
|
+
|
|
11
|
+
prune .idea
|
|
12
|
+
prune .vscode
|
|
13
|
+
prune .git
|
|
14
|
+
|
|
15
|
+
# Exclude all dotfiles globally
|
|
16
|
+
global-exclude .*
|
|
17
|
+
global-exclude __pycache__/*
|
|
18
|
+
global-exclude src/aiphoria/__pycache__/*
|
|
19
|
+
global-exclude src/aiphoria/core/__pycache__/*
|
aiphoria-0.8.0/PKG-INFO
ADDED
|
@@ -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
|
+
|
aiphoria-0.8.0/README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
<h1>
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/_static/aiphoria-logo.png" height="50">
|
|
4
|
+
<img alt="aiphoria logo" src="https://raw.githubusercontent.com/EuropeanForestInstitute/aiphoria/main/docs/_static/aiphoria-logo.png" height="160">
|
|
5
|
+
</picture>
|
|
6
|
+
</h1>
|
|
7
|
+
|
|
8
|
+
## Python package for assessing and visualizing dynamic wood material flows
|
|
9
|
+
|
|
10
|
+
> ℹ️ _This package is under continuous development_
|
|
11
|
+
|
|
12
|
+
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.
|
|
13
|
+
**aiphoria** builds on top of [ODYM - Open Dynamic Material Systems Model](https://github.com/IndEcol/ODYM).
|
|
14
|
+
|
|
15
|
+
## Features:
|
|
16
|
+
**aiphoria** allows you to:
|
|
17
|
+
- **Solve flows** provided both in absolute and relative (%) values, for example semi-finished wood product statistics (absolute values) to end-uses (relative values)
|
|
18
|
+
- **Conduct dynamic MFA as well as temporary carbon storage assessment**
|
|
19
|
+
- **Visualize material flows** through a Sankey diagram and provided timestep.
|
|
20
|
+
|
|
21
|
+
## Use cases:
|
|
22
|
+
|
|
23
|
+
**aiphoria** is ideal for:
|
|
24
|
+
- **Any temporal and spatial situation where material systems want to be assessed**
|
|
25
|
+
- **Product sink/stock effects**
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# Installation
|
|
29
|
+
|
|
30
|
+
**aiphoria** is available at Python Package Index (PyPi) and as source distribution in [Github](https://github.com/EuropeanForestInstitute/aiphoria/wiki)<br>
|
|
31
|
+
|
|
32
|
+
## Install from PyPi
|
|
33
|
+
```
|
|
34
|
+
pip install aiphoria
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Install from GitHub
|
|
38
|
+
```
|
|
39
|
+
pip install git+https://github.com/EuropeanForestInstitute/aiphoria.git
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
# How to use
|
|
43
|
+
|
|
44
|
+
## Showcase
|
|
45
|
+
**aiphoria** includes helper function to showcase example scenario with visualizations.<br>
|
|
46
|
+
Showcase / example scenario can be run by the following code:
|
|
47
|
+
|
|
48
|
+
```python
|
|
49
|
+
from aiphoria.example import run_example
|
|
50
|
+
|
|
51
|
+
run_example(remove_existing_output_dir=True)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Network and Sankey visualizations are opened automatically in browser and output is generated<br>
|
|
55
|
+
inside user home directory to directory called "aiphoria_example_scenario".<br>
|
|
56
|
+
|
|
57
|
+
## Advanced usage
|
|
58
|
+
For the users who are already familiar using **aiphoria** the package exposes function for running
|
|
59
|
+
scenarios by using the one-liner:
|
|
60
|
+
|
|
61
|
+
```python
|
|
62
|
+
from aiphoria.runner import run_scenarios
|
|
63
|
+
|
|
64
|
+
run_scenarios(path_to_settings_file="path/to/scenario/file.xlsx",
|
|
65
|
+
path_to_output_dir="~/scenario_result",
|
|
66
|
+
remove_existing_output_dir=False)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Using parameter **path_to_output_dir** overrides the output path defined in scenario file.<br>
|
|
70
|
+
This makes easier to change target from Python script itself or when running multiple scenarios in batch.<br>
|
|
71
|
+
Parameters:
|
|
72
|
+
- path_to_settings_file (string): Path to scenario settings file
|
|
73
|
+
- path_to_output_dir (string): Path to directory where results are saved
|
|
74
|
+
- 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
|
|
75
|
+
|
|
76
|
+
## Documentation
|
|
77
|
+
|
|
78
|
+
Online documentation can be found in [GitHub wiki](https://github.com/EuropeanForestInstitute/aiphoria/wiki).
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## Support:
|
|
82
|
+
|
|
83
|
+
If you have any questions or need help, do not hesitate to contact us:
|
|
84
|
+
- [cleo.orfanidou@efi.int](mailto:cleo.orfanidou@efi.int)
|
|
85
|
+
- [janne.jarvikyla@efi.int](mailto:janne.jarvikyla@efi.int)
|
|
86
|
+
|
|
87
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools >= 77.0.3"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "aiphoria"
|
|
7
|
+
version = "0.8.0"
|
|
8
|
+
authors = [
|
|
9
|
+
{ name="Janne Järvikylä", email="janne.jarvikyla@efi.int" },
|
|
10
|
+
]
|
|
11
|
+
maintainers = [
|
|
12
|
+
{ name="Janne Järvikylä", email="janne.jarvikyla@efi.int"},
|
|
13
|
+
]
|
|
14
|
+
description = "Dynamic MFA tool"
|
|
15
|
+
readme = "README.md"
|
|
16
|
+
requires-python = ">=3.9"
|
|
17
|
+
dependencies = [
|
|
18
|
+
"numpy",
|
|
19
|
+
"pandas==2.2.2",
|
|
20
|
+
"Pillow>=10.0.0",
|
|
21
|
+
"plotly==6.0.0",
|
|
22
|
+
"openpyxl==3.1.3",
|
|
23
|
+
"scipy",
|
|
24
|
+
"matplotlib",
|
|
25
|
+
"xlrd",
|
|
26
|
+
"xlwt",
|
|
27
|
+
"tqdm",
|
|
28
|
+
"myst-parser",
|
|
29
|
+
"sphinx-rtd-theme",
|
|
30
|
+
"IPython",
|
|
31
|
+
"xlsxwriter",
|
|
32
|
+
"importlib",
|
|
33
|
+
]
|
|
34
|
+
classifiers = [
|
|
35
|
+
# How mature the project is?
|
|
36
|
+
# 3 - Alpha
|
|
37
|
+
# 4 - Beta
|
|
38
|
+
# 5 - Production/Stable
|
|
39
|
+
"Development Status :: 4 - Beta",
|
|
40
|
+
"Programming Language :: Python :: 3",
|
|
41
|
+
"Operating System :: OS Independent",
|
|
42
|
+
]
|
|
43
|
+
license = "MIT"
|
|
44
|
+
license-files = ["LICEN[CS]E*"]
|
|
45
|
+
|
|
46
|
+
[project.urls]
|
|
47
|
+
Homepage = "https://github.com/EuropeanForestInstitute/aiphoria"
|
|
48
|
+
Issues = "https://github.com/EuropeanForestInstitute/aiphoria/issues"
|
|
49
|
+
|
|
50
|
+
[tool.setuptools.packages.find]
|
|
51
|
+
where = ["src"]
|
|
52
|
+
|
|
53
|
+
# Exclude dotfiles
|
|
54
|
+
[tools.setuptools.exclude-package-data]
|
|
55
|
+
"aiphoria.core.datavisualizer_data" = [".*"]
|
|
56
|
+
"aiphoria.core.network_graph_data" = [".*"]
|
|
57
|
+
|
|
58
|
+
# # Include HTML template files
|
|
59
|
+
[tools.setuptools.package-data]
|
|
60
|
+
"aiphoria.data" = ["example_scenario.xlsx"]
|
|
61
|
+
# aiphoria = ["*.txt", "*.tst"]
|
|
62
|
+
# "aiphoria.core.datavisualizer_data" = ["", "*.*"]
|
|
63
|
+
# "aiphoria.core.network_graph_data" = ["*.*"]
|
|
64
|
+
|
|
65
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
__version__ = "0.0.1"
|
|
2
|
+
|
|
3
|
+
# Import aiphoria core files, classes and functions
|
|
4
|
+
from . import core
|
|
5
|
+
from .core.builder import (
|
|
6
|
+
init_builder,
|
|
7
|
+
build_results,
|
|
8
|
+
build_dataprovider,
|
|
9
|
+
build_datachecker,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
from .core.dataprovider import DataProvider
|
|
13
|
+
from .core.datachecker import DataChecker
|
|
14
|
+
from .core.datastructures import (
|
|
15
|
+
Scenario,
|
|
16
|
+
ScenarioData,
|
|
17
|
+
Process,
|
|
18
|
+
Flow,
|
|
19
|
+
Stock,
|
|
20
|
+
Indicator,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
from .core.parameters import (
|
|
24
|
+
ParameterName,
|
|
25
|
+
ParameterFillMethod,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
from .core.utils import (
|
|
29
|
+
create_output_directory,
|
|
30
|
+
setup_current_working_directory,
|
|
31
|
+
set_output_directory,
|
|
32
|
+
get_output_directory,
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
from .core.logger import log
|
|
36
|
+
from .runner import run_scenarios
|
|
37
|
+
|
|
38
|
+
__all__ = [
|
|
39
|
+
"core",
|
|
40
|
+
"init_builder",
|
|
41
|
+
"build_results",
|
|
42
|
+
"build_dataprovider",
|
|
43
|
+
"build_datachecker",
|
|
44
|
+
"DataProvider",
|
|
45
|
+
"DataChecker",
|
|
46
|
+
"Scenario",
|
|
47
|
+
"Process",
|
|
48
|
+
"Flow",
|
|
49
|
+
"Stock",
|
|
50
|
+
"Indicator",
|
|
51
|
+
"ParameterName",
|
|
52
|
+
"ParameterFillMethod",
|
|
53
|
+
"create_output_directory",
|
|
54
|
+
"setup_current_working_directory",
|
|
55
|
+
"log",
|
|
56
|
+
"set_output_directory",
|
|
57
|
+
"get_output_directory",
|
|
58
|
+
"run_scenarios",
|
|
59
|
+
]
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"""
|
|
2
|
+
aiphoria core module
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from .builder import (
|
|
6
|
+
init_builder,
|
|
7
|
+
build_results,
|
|
8
|
+
build_dataprovider,
|
|
9
|
+
build_datachecker,
|
|
10
|
+
build_and_solve_scenarios,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
from .dataprovider import DataProvider
|
|
14
|
+
from .datachecker import DataChecker
|
|
15
|
+
from .datastructures import (
|
|
16
|
+
Scenario,
|
|
17
|
+
ScenarioData,
|
|
18
|
+
Process,
|
|
19
|
+
Flow,
|
|
20
|
+
Stock,
|
|
21
|
+
Indicator,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
from .flowsolver import FlowSolver
|
|
25
|
+
from .parameters import ParameterName, ParameterFillMethod, StockDistributionType
|
|
26
|
+
from .datavisualizer import DataVisualizer
|
|
27
|
+
from .network_graph import NetworkGraph
|
|
28
|
+
from .logger import log
|
|
29
|
+
from .utils import (
|
|
30
|
+
create_output_directory,
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
__all__ = [
|
|
34
|
+
"init_builder",
|
|
35
|
+
"build_results",
|
|
36
|
+
"build_dataprovider",
|
|
37
|
+
"build_datachecker",
|
|
38
|
+
"build_and_solve_scenarios",
|
|
39
|
+
"DataProvider",
|
|
40
|
+
"DataChecker",
|
|
41
|
+
"Scenario",
|
|
42
|
+
"ScenarioData",
|
|
43
|
+
"Process",
|
|
44
|
+
"Flow",
|
|
45
|
+
"Stock",
|
|
46
|
+
"Indicator",
|
|
47
|
+
"FlowSolver",
|
|
48
|
+
"DataVisualizer",
|
|
49
|
+
"NetworkGraph",
|
|
50
|
+
"ParameterName",
|
|
51
|
+
"ParameterFillMethod",
|
|
52
|
+
"StockDistributionType",
|
|
53
|
+
"log",
|
|
54
|
+
"create_output_directory",
|
|
55
|
+
]
|