Skip to content

Commit 1b24616

Browse files
committed
Save global outputs for the investment year
1 parent 7c8669b commit 1b24616

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/muse/mca.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,9 @@ def run(self) -> None:
325325
)
326326

327327
# Global outputs
328-
self.outputs(self.market, self.sectors, year=self.time_framework[year_idx]) # type: ignore
329-
self.outputs_cache.consolidate_cache(year=self.time_framework[year_idx])
328+
investment_year = years[1]
329+
self.outputs(self.market, self.sectors, year=investment_year)
330+
self.outputs_cache.consolidate_cache(year=investment_year)
330331

331332
getLogger(__name__).info(
332333
f"Finished simulation period {years[0]} to {years[1]} "

0 commit comments

Comments
 (0)