Skip to content

Commit df36b86

Browse files
authored
fix: another PyPSA v1 adjustment (#122)
* fix: another PyPSA v1 adjustment * fix: wrap with v1 handler
1 parent 5d4baae commit df36b86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/add_electricity.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@
7373

7474
logger = logging.getLogger(__name__)
7575

76+
if PYPSA_V1:
77+
pypsa.options.params.add.return_names = True
78+
7679

7780
def normed(s: pd.Series) -> pd.Series:
7881
"""

0 commit comments

Comments
 (0)