[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-05-22 21:56:29 +00:00
parent d2f6138ca5
commit 0f09545d96
2 changed files with 7 additions and 6 deletions

View File

@ -385,10 +385,11 @@ def mock_snakemake(rulename, configfiles=[], **wildcards):
def override_component_attrs(directory): def override_component_attrs(directory):
"""Tell PyPSA that links can have multiple outputs by """
overriding the component_attrs. This can be done for Tell PyPSA that links can have multiple outputs by overriding the
as many buses as you need with format busi for i = 2,3,4,5,.... component_attrs. This can be done for as many buses as you need with format
See https://pypsa.org/doc/components.html#link-with-multiple-outputs-or-inputs busi for i = 2,3,4,5,.... See https://pypsa.org/doc/components.html#link-
with-multiple-outputs-or-inputs.
Parameters Parameters
---------- ----------

View File

@ -698,8 +698,8 @@ def get_solar_gains_per_year(window_area):
def map_to_lstrength(l_strength, df): def map_to_lstrength(l_strength, df):
""" """
renames column names from a pandas dataframe to map tabula retrofitting Renames column names from a pandas dataframe to map tabula retrofitting
strengths [2 = moderate, 3 = ambitious] to l_strength strengths [2 = moderate, 3 = ambitious] to l_strength.
""" """
middle = len(l_strength) // 2 middle = len(l_strength) // 2
map_to_l = pd.MultiIndex.from_arrays( map_to_l = pd.MultiIndex.from_arrays(