zen-garden 2.8.12__tar.gz → 2.8.13__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 (40) hide show
  1. {zen_garden-2.8.12 → zen_garden-2.8.13}/PKG-INFO +6 -3
  2. {zen_garden-2.8.12 → zen_garden-2.8.13}/README.md +2 -2
  3. {zen_garden-2.8.12 → zen_garden-2.8.13}/pyproject.toml +30 -6
  4. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/postprocess/results/solution_loader.py +3 -0
  5. {zen_garden-2.8.12 → zen_garden-2.8.13}/LICENSE.txt +0 -0
  6. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/__init__.py +0 -0
  7. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/__main__.py +0 -0
  8. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/cli/__init__.py +0 -0
  9. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/cli/zen_example_cli.py +0 -0
  10. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/cli/zen_garden_cli.py +0 -0
  11. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/cli/zen_visualization_cli.py +0 -0
  12. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/default_config.py +0 -0
  13. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/model/__init__.py +0 -0
  14. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/model/carrier/__init__.py +0 -0
  15. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/model/carrier/carrier.py +0 -0
  16. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/model/component.py +0 -0
  17. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/model/element.py +0 -0
  18. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/model/energy_system.py +0 -0
  19. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/model/technology/__init__.py +0 -0
  20. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/model/technology/conversion_technology.py +0 -0
  21. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/model/technology/retrofitting_technology.py +0 -0
  22. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/model/technology/storage_technology.py +0 -0
  23. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/model/technology/technology.py +0 -0
  24. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/model/technology/transport_technology.py +0 -0
  25. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/model/time_steps.py +0 -0
  26. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/optimization_setup.py +0 -0
  27. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/postprocess/.gitkeep +0 -0
  28. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/postprocess/__init__.py +0 -0
  29. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/postprocess/comparisons.py +0 -0
  30. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/postprocess/postprocess.py +0 -0
  31. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/postprocess/results/__init__.py +0 -0
  32. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/postprocess/results/cache.py +0 -0
  33. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/postprocess/results/results.py +0 -0
  34. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/preprocess/__init__.py +0 -0
  35. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/preprocess/extract_input_data.py +0 -0
  36. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/preprocess/parameter_change_log.py +0 -0
  37. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/preprocess/time_series_aggregation.py +0 -0
  38. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/preprocess/unit_handling.py +0 -0
  39. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/runner.py +0 -0
  40. {zen_garden-2.8.12 → zen_garden-2.8.13}/zen_garden/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zen_garden
3
- Version: 2.8.12
3
+ Version: 2.8.13
4
4
  Summary: ZEN-garden is an optimization model of energy systems and value chains.
5
5
  Author: Alissa Ganter, Johannes Burger, Francesco De Marco, Lukas Kunz, Lukas Schmidt-Engelbertz, Christoph Funke, Paolo Gabrielli, Giovanni Sansavini
6
6
  Author-email: Jacob Mannhardt <zen-garden@ethz.ch>
@@ -29,6 +29,9 @@ Requires-Dist: pytest ; extra == "dev"
29
29
  Requires-Dist: coverage ; extra == "dev"
30
30
  Requires-Dist: pytest-xdist ; extra == "dev"
31
31
  Requires-Dist: pytest-cov ; extra == "dev"
32
+ Requires-Dist: black==25.12.0 ; extra == "dev"
33
+ Requires-Dist: ruff==0.14.13 ; extra == "dev"
34
+ Requires-Dist: mypy==1.19.1 ; extra == "dev"
32
35
  Requires-Dist: sphinx==7.3.7 ; extra == "docs"
33
36
  Requires-Dist: myst-parser==3.0.1 ; extra == "docs"
34
37
  Requires-Dist: sphinx-book-theme==1.1.3 ; extra == "docs"
@@ -72,13 +75,13 @@ ZEN-garden is developed by the [Reliability and Risk Engineering Laboratory](htt
72
75
  <hr style="height: 5px; background-color: black;">
73
76
 
74
77
  ## Quick Start
75
- To get started with ZEN-garden, you can follow the instructions in the [installation guide](https://zen-garden.readthedocs.io/en/latest/files/user_guide/installation.html).
78
+ To get started with ZEN-garden, you can follow the instructions in the [installation guide](https://zen-garden.readthedocs.io/en/latest/files/quick_start/installation.html).
76
79
 
77
80
  If you want to use ZEN-garden without working on the codebase, run the following command:
78
81
  ```bash
79
82
  pip install zen-garden
80
83
  ```
81
- If you want to work on the codebase, fork and clone the repository and install the package in editable mode. More information on how to install the package in editable mode can be found in the [installation guide](https://zen-garden.readthedocs.io/en/latest/files/user_guide/installation.html).
84
+ If you want to work on the codebase, fork and clone the repository and install the package in editable mode. More information on how to install the package in editable mode can be found in the [installation guide](https://zen-garden.readthedocs.io/en/latest/files/quick_start/installation.html).
82
85
 
83
86
  ## Documentation
84
87
  Please refer to the documentation of the ZEN-garden framework [on Read-the-Docs](https://zen-garden.readthedocs.io/en/latest/).
@@ -22,13 +22,13 @@ ZEN-garden is developed by the [Reliability and Risk Engineering Laboratory](htt
22
22
  <hr style="height: 5px; background-color: black;">
23
23
 
24
24
  ## Quick Start
25
- To get started with ZEN-garden, you can follow the instructions in the [installation guide](https://zen-garden.readthedocs.io/en/latest/files/user_guide/installation.html).
25
+ To get started with ZEN-garden, you can follow the instructions in the [installation guide](https://zen-garden.readthedocs.io/en/latest/files/quick_start/installation.html).
26
26
 
27
27
  If you want to use ZEN-garden without working on the codebase, run the following command:
28
28
  ```bash
29
29
  pip install zen-garden
30
30
  ```
31
- If you want to work on the codebase, fork and clone the repository and install the package in editable mode. More information on how to install the package in editable mode can be found in the [installation guide](https://zen-garden.readthedocs.io/en/latest/files/user_guide/installation.html).
31
+ If you want to work on the codebase, fork and clone the repository and install the package in editable mode. More information on how to install the package in editable mode can be found in the [installation guide](https://zen-garden.readthedocs.io/en/latest/files/quick_start/installation.html).
32
32
 
33
33
  ## Documentation
34
34
  Please refer to the documentation of the ZEN-garden framework [on Read-the-Docs](https://zen-garden.readthedocs.io/en/latest/).
@@ -16,7 +16,7 @@ authors = [
16
16
  {name = "Giovanni Sansavini"},
17
17
  ]
18
18
  # do not change version manually! Done by bump2version
19
- version = "2.8.12"
19
+ version = "2.8.13"
20
20
  requires-python= ">=3.11,<3.14"
21
21
  description="ZEN-garden is an optimization model of energy systems and value chains."
22
22
  readme = "README.md"
@@ -60,7 +60,10 @@ dev = [
60
60
  "pytest",
61
61
  "coverage",
62
62
  "pytest-xdist",
63
- "pytest-cov"
63
+ "pytest-cov",
64
+ "black==25.12.0",
65
+ "ruff==0.14.13",
66
+ "mypy==1.19.1"
64
67
  ]
65
68
 
66
69
  vis = [
@@ -74,10 +77,31 @@ Homepage = "https://github.com/ZEN-universe/ZEN-garden"
74
77
  Documentation = "https://zen-garden.readthedocs.io/en/latest/"
75
78
  Zenodo = "https://zenodo.org/api/records/13385110"
76
79
 
77
- [tool.pytest.ini_options]
78
- addopts = "-n auto"
79
-
80
80
  [project.scripts]
81
81
  zen-garden = "zen_garden.cli.zen_garden_cli:create_zen_garden_cli"
82
82
  zen-visualization = "zen_garden.cli.zen_visualization_cli:create_zen_visualization_cli"
83
- zen-example = "zen_garden.cli.zen_example_cli:create_zen_example_cli"
83
+ zen-example = "zen_garden.cli.zen_example_cli:create_zen_example_cli"
84
+
85
+ [tool.pytest.ini_options]
86
+ addopts = "-n auto"
87
+
88
+ [tool.black]
89
+ line-length = 79
90
+ target-version = ["py311", "py312", "py313"]
91
+
92
+ [tool.ruff]
93
+ line-length = 79
94
+ fix = false
95
+
96
+ [tool.ruff.lint]
97
+ select = ["E", "F", "I", "B"]
98
+ ignore = []
99
+
100
+ [tool.ruff.lint.isort]
101
+ known-first-party = ["your_package_name"]
102
+
103
+ [tool.mypy]
104
+ warn_unused_configs = true
105
+ ignore_missing_imports = true
106
+ check_untyped_defs = false
107
+ disallow_untyped_defs = false
@@ -379,6 +379,9 @@ class SolutionLoader():
379
379
  series_to_concat.append(current_mf)
380
380
  break
381
381
 
382
+ if len(series_to_concat) == 0:
383
+ return pd.Series(dtype=float)
384
+
382
385
  return pd.concat(series_to_concat)
383
386
 
384
387
  def _concatenate_raw_dataseries(
File without changes