OpenPyTEA 3.0.0__tar.gz → 3.2.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.
Files changed (29) hide show
  1. {openpytea-3.0.0/src/OpenPyTEA.egg-info → openpytea-3.2.0}/PKG-INFO +23 -5
  2. {openpytea-3.0.0 → openpytea-3.2.0}/README.md +22 -4
  3. {openpytea-3.0.0 → openpytea-3.2.0}/pyproject.toml +1 -1
  4. {openpytea-3.0.0 → openpytea-3.2.0/src/OpenPyTEA.egg-info}/PKG-INFO +23 -5
  5. {openpytea-3.0.0 → openpytea-3.2.0}/src/openpytea/__init__.py +3 -8
  6. {openpytea-3.0.0 → openpytea-3.2.0}/src/openpytea/analysis.py +181 -393
  7. {openpytea-3.0.0 → openpytea-3.2.0}/src/openpytea/cli.py +13 -20
  8. {openpytea-3.0.0 → openpytea-3.2.0}/src/openpytea/equipment.py +59 -118
  9. {openpytea-3.0.0 → openpytea-3.2.0}/src/openpytea/helpers.py +53 -191
  10. {openpytea-3.0.0 → openpytea-3.2.0}/src/openpytea/io.py +150 -202
  11. {openpytea-3.0.0 → openpytea-3.2.0}/src/openpytea/plant.py +431 -901
  12. {openpytea-3.0.0 → openpytea-3.2.0}/src/openpytea/plotting.py +74 -136
  13. {openpytea-3.0.0 → openpytea-3.2.0}/tests/test_analysis.py +10 -0
  14. {openpytea-3.0.0 → openpytea-3.2.0}/tests/test_cli.py +0 -9
  15. {openpytea-3.0.0 → openpytea-3.2.0}/tests/test_composite_equipment.py +30 -0
  16. {openpytea-3.0.0 → openpytea-3.2.0}/tests/test_plant.py +125 -0
  17. {openpytea-3.0.0 → openpytea-3.2.0}/tests/test_plotting.py +16 -24
  18. {openpytea-3.0.0 → openpytea-3.2.0}/tests/test_run_tea.py +47 -0
  19. {openpytea-3.0.0 → openpytea-3.2.0}/LICENSE +0 -0
  20. {openpytea-3.0.0 → openpytea-3.2.0}/setup.cfg +0 -0
  21. {openpytea-3.0.0 → openpytea-3.2.0}/src/OpenPyTEA.egg-info/SOURCES.txt +0 -0
  22. {openpytea-3.0.0 → openpytea-3.2.0}/src/OpenPyTEA.egg-info/dependency_links.txt +0 -0
  23. {openpytea-3.0.0 → openpytea-3.2.0}/src/OpenPyTEA.egg-info/entry_points.txt +0 -0
  24. {openpytea-3.0.0 → openpytea-3.2.0}/src/OpenPyTEA.egg-info/requires.txt +0 -0
  25. {openpytea-3.0.0 → openpytea-3.2.0}/src/OpenPyTEA.egg-info/top_level.txt +0 -0
  26. {openpytea-3.0.0 → openpytea-3.2.0}/src/openpytea/data/cepci_values.csv +0 -0
  27. {openpytea-3.0.0 → openpytea-3.2.0}/src/openpytea/data/cost_correlations.csv +0 -0
  28. {openpytea-3.0.0 → openpytea-3.2.0}/tests/test_equipment.py +0 -0
  29. {openpytea-3.0.0 → openpytea-3.2.0}/tests/test_smoke.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: OpenPyTEA
3
- Version: 3.0.0
3
+ Version: 3.2.0
4
4
  Summary: OpenPyTEA: An open-source Python toolkit for techno-economic assessment of process plants with economic sensitivity and uncertainty evaluation
5
5
  Maintainer-email: "Panji B. Tamarona" <P.B.Tamarona@tudelft.nl>
6
6
  License-Expression: MIT
@@ -34,8 +34,8 @@ Beyond its functionality, **OpenPyTEA is designed as a community-driven TEA plat
34
34
 
35
35
  Whether used for early-stage process design, technology screening, or teaching, **OpenPyTEA** makes TEA more accessible, consistent, and aligned with FAIR research principles (Findable, Accessible, Interoperable, and Reusable).
36
36
 
37
- **For a full walkthrough of the features and usage of OpenPyTEA, refer to the `walkthrough.ipynb` notebook**:
38
- https://github.com/pbtamarona/OpenPyTEA/blob/main/walkthrough.ipynb
37
+ **For a full walkthrough of the features and usage of OpenPyTEA, refer to the notebooks in the `walkthrough` folder** (five parts, from equipment costing to Monte Carlo analysis):
38
+ https://github.com/pbtamarona/OpenPyTEA/tree/main/walkthrough
39
39
 
40
40
  **For the full documentation of the package, visit the ReadTheDocs page:**
41
41
  https://openpytea.readthedocs.io
@@ -86,16 +86,34 @@ Lunch, snacks, coffee, and drinks will be provided!
86
86
  pip install openpytea
87
87
  ```
88
88
 
89
+ If you work in Jupyter notebooks or want to run the walkthrough and example notebooks, we recommend installing with the `ipython` extra:
90
+
91
+ ```bash
92
+ pip install "openpytea[ipython]"
93
+ ```
94
+
95
+ The difference:
96
+
97
+ - `pip install openpytea` installs the core package. This is enough for Python scripts and the command-line interface.
98
+ - `pip install "openpytea[ipython]"` also installs `ipython` and `ipywidgets`, which OpenPyTEA uses to show a live progress bar in notebooks during Monte Carlo runs. Without them, the progress bar falls back to plain text and Jupyter shows a warning. Jupyter itself is not included; install it separately if needed (e.g. `pip install jupyter`).
99
+
89
100
  ### 2. **Install from GitHub (development version)**
90
101
 
91
102
  ```bash
92
103
  pip install git+https://github.com/pbtamarona/OpenPyTEA
93
104
  ```
94
105
 
106
+ or, with the `ipython` extra for notebooks:
107
+
108
+ ```bash
109
+ pip install "openpytea[ipython] @ git+https://github.com/pbtamarona/OpenPyTEA"
110
+ ```
111
+
95
112
  or with `uv`:
96
113
 
97
114
  ```bash
98
115
  uv add git+https://github.com/pbtamarona/OpenPyTEA
116
+ uv add "openpytea[ipython] @ git+https://github.com/pbtamarona/OpenPyTEA" # with notebook extras
99
117
  ```
100
118
 
101
119
  **OpenPyTEA** requires **Python ≥ 3.10**.
@@ -121,7 +139,7 @@ src/openpytea/
121
139
  ├── helpers.py # Helper functions for data handling and common operations
122
140
  └── data/ # Cost correlations database and CEPCI data
123
141
  examples/ # Example notebooks and case studies
124
- walkthrough.ipynb # Walkthrough of the package
142
+ walkthrough/ # Walkthrough of the package, split into five notebooks (part_1 ... part_5)
125
143
  pyproject.toml
126
144
  README.md
127
145
  ```
@@ -260,7 +278,7 @@ cash_flow = cash_flow_data(ammonia_plant)
260
278
  fig, ax = plot_cash_flow(cash_flow)
261
279
  ```
262
280
 
263
- As with the cost breakdowns, passing a **list of plants** overlays their cumulative cash flow curves — each with its own shaded debt region and break-even line — for direct comparison. The returned dictionary also carries the underlying figures (`max_investment`, `max_investment_year`, `breakeven_year`/`payback_time`) for use outside the plot, e.g. in reports.
281
+ As with the cost breakdowns, passing a **list of plants** overlays their cumulative cash flow curves — each with its own shaded debt region and break-even line — for direct comparison. The returned dictionary also carries the underlying figures (`max_investment`, `max_investment_year`, `breakeven_year`) for use outside the plot, e.g. in reports.
264
282
 
265
283
  ### 5. **Sensitivity and uncertainty analysis**
266
284
 
@@ -10,8 +10,8 @@ Beyond its functionality, **OpenPyTEA is designed as a community-driven TEA plat
10
10
 
11
11
  Whether used for early-stage process design, technology screening, or teaching, **OpenPyTEA** makes TEA more accessible, consistent, and aligned with FAIR research principles (Findable, Accessible, Interoperable, and Reusable).
12
12
 
13
- **For a full walkthrough of the features and usage of OpenPyTEA, refer to the `walkthrough.ipynb` notebook**:
14
- https://github.com/pbtamarona/OpenPyTEA/blob/main/walkthrough.ipynb
13
+ **For a full walkthrough of the features and usage of OpenPyTEA, refer to the notebooks in the `walkthrough` folder** (five parts, from equipment costing to Monte Carlo analysis):
14
+ https://github.com/pbtamarona/OpenPyTEA/tree/main/walkthrough
15
15
 
16
16
  **For the full documentation of the package, visit the ReadTheDocs page:**
17
17
  https://openpytea.readthedocs.io
@@ -62,16 +62,34 @@ Lunch, snacks, coffee, and drinks will be provided!
62
62
  pip install openpytea
63
63
  ```
64
64
 
65
+ If you work in Jupyter notebooks or want to run the walkthrough and example notebooks, we recommend installing with the `ipython` extra:
66
+
67
+ ```bash
68
+ pip install "openpytea[ipython]"
69
+ ```
70
+
71
+ The difference:
72
+
73
+ - `pip install openpytea` installs the core package. This is enough for Python scripts and the command-line interface.
74
+ - `pip install "openpytea[ipython]"` also installs `ipython` and `ipywidgets`, which OpenPyTEA uses to show a live progress bar in notebooks during Monte Carlo runs. Without them, the progress bar falls back to plain text and Jupyter shows a warning. Jupyter itself is not included; install it separately if needed (e.g. `pip install jupyter`).
75
+
65
76
  ### 2. **Install from GitHub (development version)**
66
77
 
67
78
  ```bash
68
79
  pip install git+https://github.com/pbtamarona/OpenPyTEA
69
80
  ```
70
81
 
82
+ or, with the `ipython` extra for notebooks:
83
+
84
+ ```bash
85
+ pip install "openpytea[ipython] @ git+https://github.com/pbtamarona/OpenPyTEA"
86
+ ```
87
+
71
88
  or with `uv`:
72
89
 
73
90
  ```bash
74
91
  uv add git+https://github.com/pbtamarona/OpenPyTEA
92
+ uv add "openpytea[ipython] @ git+https://github.com/pbtamarona/OpenPyTEA" # with notebook extras
75
93
  ```
76
94
 
77
95
  **OpenPyTEA** requires **Python ≥ 3.10**.
@@ -97,7 +115,7 @@ src/openpytea/
97
115
  ├── helpers.py # Helper functions for data handling and common operations
98
116
  └── data/ # Cost correlations database and CEPCI data
99
117
  examples/ # Example notebooks and case studies
100
- walkthrough.ipynb # Walkthrough of the package
118
+ walkthrough/ # Walkthrough of the package, split into five notebooks (part_1 ... part_5)
101
119
  pyproject.toml
102
120
  README.md
103
121
  ```
@@ -236,7 +254,7 @@ cash_flow = cash_flow_data(ammonia_plant)
236
254
  fig, ax = plot_cash_flow(cash_flow)
237
255
  ```
238
256
 
239
- As with the cost breakdowns, passing a **list of plants** overlays their cumulative cash flow curves — each with its own shaded debt region and break-even line — for direct comparison. The returned dictionary also carries the underlying figures (`max_investment`, `max_investment_year`, `breakeven_year`/`payback_time`) for use outside the plot, e.g. in reports.
257
+ As with the cost breakdowns, passing a **list of plants** overlays their cumulative cash flow curves — each with its own shaded debt region and break-even line — for direct comparison. The returned dictionary also carries the underlying figures (`max_investment`, `max_investment_year`, `breakeven_year`) for use outside the plot, e.g. in reports.
240
258
 
241
259
  ### 5. **Sensitivity and uncertainty analysis**
242
260
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "OpenPyTEA"
3
- version = "3.0.0"
3
+ version = "3.2.0"
4
4
  description = "OpenPyTEA: An open-source Python toolkit for techno-economic assessment of process plants with economic sensitivity and uncertainty evaluation"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: OpenPyTEA
3
- Version: 3.0.0
3
+ Version: 3.2.0
4
4
  Summary: OpenPyTEA: An open-source Python toolkit for techno-economic assessment of process plants with economic sensitivity and uncertainty evaluation
5
5
  Maintainer-email: "Panji B. Tamarona" <P.B.Tamarona@tudelft.nl>
6
6
  License-Expression: MIT
@@ -34,8 +34,8 @@ Beyond its functionality, **OpenPyTEA is designed as a community-driven TEA plat
34
34
 
35
35
  Whether used for early-stage process design, technology screening, or teaching, **OpenPyTEA** makes TEA more accessible, consistent, and aligned with FAIR research principles (Findable, Accessible, Interoperable, and Reusable).
36
36
 
37
- **For a full walkthrough of the features and usage of OpenPyTEA, refer to the `walkthrough.ipynb` notebook**:
38
- https://github.com/pbtamarona/OpenPyTEA/blob/main/walkthrough.ipynb
37
+ **For a full walkthrough of the features and usage of OpenPyTEA, refer to the notebooks in the `walkthrough` folder** (five parts, from equipment costing to Monte Carlo analysis):
38
+ https://github.com/pbtamarona/OpenPyTEA/tree/main/walkthrough
39
39
 
40
40
  **For the full documentation of the package, visit the ReadTheDocs page:**
41
41
  https://openpytea.readthedocs.io
@@ -86,16 +86,34 @@ Lunch, snacks, coffee, and drinks will be provided!
86
86
  pip install openpytea
87
87
  ```
88
88
 
89
+ If you work in Jupyter notebooks or want to run the walkthrough and example notebooks, we recommend installing with the `ipython` extra:
90
+
91
+ ```bash
92
+ pip install "openpytea[ipython]"
93
+ ```
94
+
95
+ The difference:
96
+
97
+ - `pip install openpytea` installs the core package. This is enough for Python scripts and the command-line interface.
98
+ - `pip install "openpytea[ipython]"` also installs `ipython` and `ipywidgets`, which OpenPyTEA uses to show a live progress bar in notebooks during Monte Carlo runs. Without them, the progress bar falls back to plain text and Jupyter shows a warning. Jupyter itself is not included; install it separately if needed (e.g. `pip install jupyter`).
99
+
89
100
  ### 2. **Install from GitHub (development version)**
90
101
 
91
102
  ```bash
92
103
  pip install git+https://github.com/pbtamarona/OpenPyTEA
93
104
  ```
94
105
 
106
+ or, with the `ipython` extra for notebooks:
107
+
108
+ ```bash
109
+ pip install "openpytea[ipython] @ git+https://github.com/pbtamarona/OpenPyTEA"
110
+ ```
111
+
95
112
  or with `uv`:
96
113
 
97
114
  ```bash
98
115
  uv add git+https://github.com/pbtamarona/OpenPyTEA
116
+ uv add "openpytea[ipython] @ git+https://github.com/pbtamarona/OpenPyTEA" # with notebook extras
99
117
  ```
100
118
 
101
119
  **OpenPyTEA** requires **Python ≥ 3.10**.
@@ -121,7 +139,7 @@ src/openpytea/
121
139
  ├── helpers.py # Helper functions for data handling and common operations
122
140
  └── data/ # Cost correlations database and CEPCI data
123
141
  examples/ # Example notebooks and case studies
124
- walkthrough.ipynb # Walkthrough of the package
142
+ walkthrough/ # Walkthrough of the package, split into five notebooks (part_1 ... part_5)
125
143
  pyproject.toml
126
144
  README.md
127
145
  ```
@@ -260,7 +278,7 @@ cash_flow = cash_flow_data(ammonia_plant)
260
278
  fig, ax = plot_cash_flow(cash_flow)
261
279
  ```
262
280
 
263
- As with the cost breakdowns, passing a **list of plants** overlays their cumulative cash flow curves — each with its own shaded debt region and break-even line — for direct comparison. The returned dictionary also carries the underlying figures (`max_investment`, `max_investment_year`, `breakeven_year`/`payback_time`) for use outside the plot, e.g. in reports.
281
+ As with the cost breakdowns, passing a **list of plants** overlays their cumulative cash flow curves — each with its own shaded debt region and break-even line — for direct comparison. The returned dictionary also carries the underlying figures (`max_investment`, `max_investment_year`, `breakeven_year`) for use outside the plot, e.g. in reports.
264
282
 
265
283
  ### 5. **Sensitivity and uncertainty analysis**
266
284
 
@@ -3,6 +3,8 @@ assessment of chemical process plants and energy systems with
3
3
  economic sensitivity and uncertainty evaluation.
4
4
  """
5
5
 
6
+ from importlib.metadata import version
7
+
6
8
  from .plant import Plant
7
9
  from .equipment import Equipment, CompositeEquipment, inflation_adjustment
8
10
  from .analysis import (direct_costs_data, fixed_capital_data,
@@ -19,16 +21,9 @@ from .plotting import (plot_stacked_bar, plot_cash_flow,
19
21
  from .io import (load_results, load_openpytea_config,
20
22
  run_equipment, run_plant, run_tea, run_openpytea)
21
23
 
22
- __version__ = "3.0.0"
24
+ __version__ = version("openpytea")
23
25
  __author__ = "Panji B. Tamarona"
24
- __email__ = "P.B.Tamarona@tudelft.nl"
25
26
  __license__ = "MIT"
26
- __description__ = (
27
- "OpenPyTEA: An open-source python toolkit for techno-economic"
28
- " assessment of chemical process plants and energy systems with"
29
- " economic sensitivity and uncertainty evaluation"
30
- )
31
- __url__ = "https://github.com/PBTamarona/OpenPyTEA"
32
27
 
33
28
  __all__ = [
34
29
  "Plant",