File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -327,7 +327,8 @@ def run(self) -> None:
327327 # Global outputs
328328 investment_year = years [1 ]
329329 self .outputs (self .market , self .sectors , year = investment_year )
330- self .outputs_cache .consolidate_cache (year = investment_year )
330+ self .outputs_cache .consolidate_cache (year = years [0 ])
331+ # TODO: change cache to investment_year (not working properly anyway)
331332
332333 getLogger (__name__ ).info (
333334 f"Finished simulation period { years [0 ]} to { years [1 ]} "
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ def _factory(
104104
105105 def save_multiple_outputs (market , * args , year : int | None = None ) -> list [Any ]:
106106 if year is None :
107- year = int (market .year .min ())
107+ year = int (market .year .max ())
108108
109109 return [
110110 sink (quantity (market , * args ), year = year )
You can’t perform that action at this time.
0 commit comments