Skip to content

Commit 5acd1d4

Browse files
committed
Fix sector outputs
1 parent 13d95de commit 5acd1d4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/muse/sectors/sector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ def group_assets(x: xr.DataArray) -> xr.DataArray:
266266

267267
def save_outputs(self) -> None:
268268
"""Calls the outputs function with the current output data."""
269-
self.outputs(self.output_data, self.capacity)
269+
investment_year = self.output_data.year.values[1]
270+
self.outputs(self.output_data, self.capacity, year=investment_year)
270271

271272
def market_variables(self, market: xr.Dataset, technologies: xr.Dataset) -> Any:
272273
"""Computes resulting market: production, consumption, and costs."""

0 commit comments

Comments
 (0)