zen-garden 2.7.15__tar.gz → 2.7.17__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.
- {zen_garden-2.7.15 → zen_garden-2.7.17}/PKG-INFO +2 -2
- {zen_garden-2.7.15 → zen_garden-2.7.17}/pyproject.toml +3 -2
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/__main__.py +1 -1
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/postprocess/results/solution_loader.py +6 -1
- {zen_garden-2.7.15 → zen_garden-2.7.17}/LICENSE.txt +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/README.md +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/__init__.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/_internal.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/default_config.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/model/__init__.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/model/carrier/__init__.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/model/carrier/carrier.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/model/component.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/model/element.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/model/energy_system.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/model/technology/__init__.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/model/technology/conversion_technology.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/model/technology/retrofitting_technology.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/model/technology/storage_technology.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/model/technology/technology.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/model/technology/transport_technology.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/model/time_steps.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/optimization_setup.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/postprocess/.gitkeep +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/postprocess/__init__.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/postprocess/comparisons.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/postprocess/postprocess.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/postprocess/results/__init__.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/postprocess/results/results.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/preprocess/__init__.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/preprocess/extract_input_data.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/preprocess/parameter_change_log.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/preprocess/time_series_aggregation.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/preprocess/unit_handling.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/utils.py +0 -0
- {zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/visualization.py +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: zen_garden
|
|
3
|
-
Version: 2.7.
|
|
3
|
+
Version: 2.7.17
|
|
4
4
|
Summary: ZEN-garden is an optimization model of energy systems and value chains.
|
|
5
|
-
Author: Alissa Ganter, Johannes Burger, Francesco De Marco, Lukas Kunz, Lukas Schmidt-Engelbertz, Paolo Gabrielli, Giovanni Sansavini
|
|
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>
|
|
7
7
|
Requires-Python: >=3.11,<3.14
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
@@ -11,11 +11,12 @@ authors = [
|
|
|
11
11
|
{name = "Francesco De Marco"},
|
|
12
12
|
{name = "Lukas Kunz"},
|
|
13
13
|
{name = "Lukas Schmidt-Engelbertz"},
|
|
14
|
+
{name = "Christoph Funke"},
|
|
14
15
|
{name = "Paolo Gabrielli"},
|
|
15
16
|
{name = "Giovanni Sansavini"},
|
|
16
17
|
]
|
|
17
18
|
# do not change version manually! Done by bump2version
|
|
18
|
-
version = "2.7.
|
|
19
|
+
version = "2.7.17"
|
|
19
20
|
requires-python= ">=3.11,<3.14"
|
|
20
21
|
description="ZEN-garden is an optimization model of energy systems and value chains."
|
|
21
22
|
readme = "README.md"
|
|
@@ -78,4 +79,4 @@ addopts = "-n auto"
|
|
|
78
79
|
|
|
79
80
|
[project.scripts]
|
|
80
81
|
zen-garden = "zen_garden.__main__:run_module"
|
|
81
|
-
zen-
|
|
82
|
+
zen-visualization = "zen_garden.visualization:parse_arguments_and_run"
|
|
@@ -28,7 +28,7 @@ def run_module(args=None, config = "./config.py", dataset = None,
|
|
|
28
28
|
"current working directory. You can specify a config file with the --config argument. However, " \
|
|
29
29
|
"note that the output directory will always be the current working directory, independent of the " \
|
|
30
30
|
"dataset specified in the config file."
|
|
31
|
-
parser = argparse.ArgumentParser(description=description, add_help=True, usage="usage:
|
|
31
|
+
parser = argparse.ArgumentParser(description=description, add_help=True, usage="usage: zen-garden [-h] [--config CONFIG] [--dataset DATASET] [--job_index JOB_INDEX] [--job_index_var JOB_INDEX_VAR] [-- download_example EXAMPLE_NAME]")
|
|
32
32
|
# TODO make json config default
|
|
33
33
|
parser.add_argument("--config", required=False, type=str, default=config, help="Path to the config file used to run the pipeline (e.g., `./config.json`). Alternatively, if the config file is located in the current working directory, then the file name is alone is also acceptable (e.g. `config.json`).")
|
|
34
34
|
parser.add_argument("--dataset", required=False, type=str, default=dataset, help="Path to the dataset (e.g. `./<dataset_name>`). Alternatively, if the dataset is located in the current working directory, then the folder name alone is also acceptable (e.g. `<dataset_name>`). IMPORTANT: This will overwrite the config.analysis.dataset attribute of the config file!")
|
|
@@ -668,7 +668,12 @@ class SolutionLoader():
|
|
|
668
668
|
version = get_solution_version(scenario)
|
|
669
669
|
if check_if_v1_leq_v2(version,"v1"):
|
|
670
670
|
sequence = self.get_sequence_time_steps(scenario,TimestepType.storage)
|
|
671
|
-
|
|
671
|
+
time_steps_per_year = scenario.system.unaggregated_time_steps_per_year
|
|
672
|
+
dict_startend = {}
|
|
673
|
+
for i in np.arange(scenario.system.optimized_years):
|
|
674
|
+
start_idx = i * time_steps_per_year
|
|
675
|
+
end_idx = (i + 1) * time_steps_per_year - 1
|
|
676
|
+
dict_startend[sequence.iloc[start_idx]] = sequence.iloc[end_idx]
|
|
672
677
|
else:
|
|
673
678
|
time_steps_file_name = _get_time_steps_file(scenario)
|
|
674
679
|
time_steps_file_name = time_steps_file_name + ".json"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/model/technology/conversion_technology.py
RENAMED
|
File without changes
|
{zen_garden-2.7.15 → zen_garden-2.7.17}/zen_garden/model/technology/retrofitting_technology.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|