zen-garden 2.7.16__tar.gz → 2.7.18__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 (36) hide show
  1. {zen_garden-2.7.16 → zen_garden-2.7.18}/PKG-INFO +2 -2
  2. {zen_garden-2.7.16 → zen_garden-2.7.18}/pyproject.toml +3 -2
  3. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/__main__.py +1 -1
  4. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/postprocess/results/results.py +9 -1
  5. {zen_garden-2.7.16 → zen_garden-2.7.18}/LICENSE.txt +0 -0
  6. {zen_garden-2.7.16 → zen_garden-2.7.18}/README.md +0 -0
  7. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/__init__.py +0 -0
  8. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/_internal.py +0 -0
  9. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/default_config.py +0 -0
  10. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/model/__init__.py +0 -0
  11. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/model/carrier/__init__.py +0 -0
  12. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/model/carrier/carrier.py +0 -0
  13. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/model/component.py +0 -0
  14. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/model/element.py +0 -0
  15. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/model/energy_system.py +0 -0
  16. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/model/technology/__init__.py +0 -0
  17. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/model/technology/conversion_technology.py +0 -0
  18. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/model/technology/retrofitting_technology.py +0 -0
  19. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/model/technology/storage_technology.py +0 -0
  20. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/model/technology/technology.py +0 -0
  21. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/model/technology/transport_technology.py +0 -0
  22. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/model/time_steps.py +0 -0
  23. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/optimization_setup.py +0 -0
  24. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/postprocess/.gitkeep +0 -0
  25. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/postprocess/__init__.py +0 -0
  26. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/postprocess/comparisons.py +0 -0
  27. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/postprocess/postprocess.py +0 -0
  28. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/postprocess/results/__init__.py +0 -0
  29. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/postprocess/results/solution_loader.py +0 -0
  30. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/preprocess/__init__.py +0 -0
  31. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/preprocess/extract_input_data.py +0 -0
  32. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/preprocess/parameter_change_log.py +0 -0
  33. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/preprocess/time_series_aggregation.py +0 -0
  34. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/preprocess/unit_handling.py +0 -0
  35. {zen_garden-2.7.16 → zen_garden-2.7.18}/zen_garden/utils.py +0 -0
  36. {zen_garden-2.7.16 → zen_garden-2.7.18}/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.16
3
+ Version: 2.7.18
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.16"
19
+ version = "2.7.18"
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-viz = "zen_garden.visualization:parse_arguments_and_run"
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: python -m zen_garden [-h] [--config CONFIG] [--dataset DATASET] [--job_index JOB_INDEX] [--job_index_var JOB_INDEX_VAR] [-- download_example EXAMPLE_NAME]")
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!")
@@ -337,13 +337,21 @@ class Results:
337
337
  """
338
338
  Calculates the total values of a component for a all scenarios.
339
339
 
340
- :param component_name: Name of the component
340
+ :param component_name: Name of the component. Should not be used for dual variables!
341
341
  :param year: Filter the results by a given year
342
342
  :param scenario_name: Filter the results by a given scenario
343
343
  :param keep_raw: Keep the raw values of the rolling horizon optimization
344
344
  :param index: slicing index of the resulting dataframe
345
345
  :return: Total values of the component
346
346
  """
347
+
348
+ # Throw error if used for a dual variable
349
+ if component_name in self.get_component_names("dual"):
350
+ raise ValueError(
351
+ "This method does not support the extraction of " \
352
+ "dual variables. Please use the methods " \
353
+ "`get_dual()` or `get_full_ts()` instead.")
354
+
347
355
  if scenario_name is None:
348
356
  scenario_names = list(self.solution_loader.scenarios)
349
357
  else:
File without changes
File without changes