zen-garden 2.7.15__py3-none-any.whl → 2.7.16__py3-none-any.whl

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.
@@ -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
- dict_startend = {sequence.iloc[0]:sequence.iloc[-1]}
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"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zen_garden
3
- Version: 2.7.15
3
+ Version: 2.7.16
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, Paolo Gabrielli, Giovanni Sansavini
6
6
  Author-email: Jacob Mannhardt <zen-garden@ethz.ch>
@@ -24,14 +24,14 @@ zen_garden/postprocess/comparisons.py,sha256=uyEtV0Q8_YPzJi4b12DWiqYU-kKJz6I3Li-
24
24
  zen_garden/postprocess/postprocess.py,sha256=0_1iy028iZmvf2egXUFO2ZS13HmkacMt7A5eTI0iCE4,29644
25
25
  zen_garden/postprocess/results/__init__.py,sha256=363lzC0uRJ5F42cOEhD9jxMPCioTt8WRt0qwZG0IizY,49
26
26
  zen_garden/postprocess/results/results.py,sha256=jdJprpSbfs62TZKcHbkfCvSkpG-8fTRXTWoXew9M9AQ,40585
27
- zen_garden/postprocess/results/solution_loader.py,sha256=mlLcAdU7-cVRBjqrZvDDbxNZkIV1gxC-z0_hP0aJd_E,30945
27
+ zen_garden/postprocess/results/solution_loader.py,sha256=ChEV4kUi4m5h3Q6B8oxf9wPdEmrH_CNTs5BRNR8UZQs,31252
28
28
  zen_garden/preprocess/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  zen_garden/preprocess/extract_input_data.py,sha256=PWKdel7s488SELseyAaoFkwXpzJU4MZg0pW0wO2ZHoI,51523
30
30
  zen_garden/preprocess/parameter_change_log.py,sha256=WNhLYTyuaFkUl_e4QH36W1chpqg00m7zg__PawPogAY,387
31
31
  zen_garden/preprocess/time_series_aggregation.py,sha256=v8xRRk4I9WZ2yi7V3I_Ersj2RV1T2WIKslx8ohkMfWI,32112
32
32
  zen_garden/preprocess/unit_handling.py,sha256=OGIHFyDdUmGU-GEGHkJGJ9RmKfDBy5-HmuBQmtYAK5Q,63043
33
- zen_garden-2.7.15.dist-info/entry_points.txt,sha256=Jfa7k0xmvGql3hGJid62hGV1rzDt81uTs3PgZre0VJk,118
34
- zen_garden-2.7.15.dist-info/licenses/LICENSE.txt,sha256=_kEtxPe9gWOwMzdiy8nLzgABiPdMvUS0kaSCOIrEA_E,1101
35
- zen_garden-2.7.15.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
36
- zen_garden-2.7.15.dist-info/METADATA,sha256=VM1W13DJXnEPjp2yRD9En7fTZiU1wa0lrlg5Mc6f1qY,5632
37
- zen_garden-2.7.15.dist-info/RECORD,,
33
+ zen_garden-2.7.16.dist-info/entry_points.txt,sha256=Jfa7k0xmvGql3hGJid62hGV1rzDt81uTs3PgZre0VJk,118
34
+ zen_garden-2.7.16.dist-info/licenses/LICENSE.txt,sha256=_kEtxPe9gWOwMzdiy8nLzgABiPdMvUS0kaSCOIrEA_E,1101
35
+ zen_garden-2.7.16.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
36
+ zen_garden-2.7.16.dist-info/METADATA,sha256=rh8SzLVXjHwV9foyWEcIxOwR3xvyzQFASIXyT2YesZ0,5632
37
+ zen_garden-2.7.16.dist-info/RECORD,,