Skip to content

Commit 6e19f4d

Browse files
committed
Add more kwargs arguments
1 parent 6324784 commit 6e19f4d

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

docs/advanced-guide/extending-muse.ipynb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,15 @@
301301
"def capacity(\n",
302302
" cached: list[xr.DataArray],\n",
303303
" agents: MutableMapping[str, MutableMapping[str, str]],\n",
304+
" **kwargs,\n",
304305
") -> pd.DataFrame:\n",
305306
" \"\"\"Consolidates the cached capacity into a single DataFrame to save.\n",
306307
"\n",
307308
" Args:\n",
308309
" cached (list[xr.DataArray]): The list of cached arrays during the calculation of\n",
309310
" the time period with the capacity.\n",
310311
" agents (MutableMapping[Text, MutableMapping[Text, Text]]): Agents' metadata.\n",
312+
" kwargs: unused.\n",
311313
"\n",
312314
" Returns:\n",
313315
" pd.DataFrame: DataFrame with the consolidated data for retro agents.\n",
@@ -654,6 +656,11 @@
654656
"source": [
655657
"In the next section we will output a technology filter, to stop agents from investing in a certain technology, and a new metric to combine multiple objectives."
656658
]
659+
},
660+
{
661+
"cell_type": "markdown",
662+
"metadata": {},
663+
"source": []
657664
}
658665
],
659666
"metadata": {

src/muse/outputs/cache.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,12 +439,14 @@ def consolidate_quantity(
439439
def capacity(
440440
cached: list[xr.DataArray],
441441
agents: MutableMapping[str, MutableMapping[str, str]],
442+
**kwargs,
442443
) -> pd.DataFrame:
443444
"""Consolidates the cached capacities into a single DataFrame to save.
444445
445446
Args:
446447
cached (List[xr.DataArray]): The list of cached arrays
447448
agents (MutableMapping[Text, MutableMapping[Text, Text]]): Agents' metadata.
449+
kwargs: unused.
448450
449451
Returns:
450452
pd.DataFrame: DataFrame with the consolidated data.
@@ -456,12 +458,14 @@ def capacity(
456458
def production(
457459
cached: list[xr.DataArray],
458460
agents: MutableMapping[str, MutableMapping[str, str]],
461+
**kwargs,
459462
) -> pd.DataFrame:
460463
"""Consolidates the cached production into a single DataFrame to save.
461464
462465
Args:
463466
cached (List[xr.DataArray]): The list of cached arrays
464467
agents (MutableMapping[Text, MutableMapping[Text, Text]]): Agents' metadata.
468+
kwargs: unused.
465469
466470
Returns:
467471
pd.DataFrame: DataFrame with the consolidated data.
@@ -473,12 +477,14 @@ def production(
473477
def lcoe(
474478
cached: list[xr.DataArray],
475479
agents: MutableMapping[str, MutableMapping[str, str]],
480+
**kwargs,
476481
) -> pd.DataFrame:
477482
"""Consolidates the cached LCOE into a single DataFrame to save.
478483
479484
Args:
480485
cached (List[xr.DataArray]): The list of cached arrays
481486
agents (MutableMapping[Text, MutableMapping[Text, Text]]): Agents' metadata.
487+
kwargs: unused.
482488
483489
Returns:
484490
pd.DataFrame: DataFrame with the consolidated data.

0 commit comments

Comments
 (0)