@@ -2708,6 +2708,7 @@ def add_carbon_capture(
27082708
27092709 return new_technology_dataframe
27102710
2711+
27112712def add_perennials_gbr (
27122713 years : list ,
27132714 sheet_names_dict : dict ,
@@ -2748,7 +2749,9 @@ def add_perennials_gbr(
27482749
27492750 # --- Mass & energy balance assumptions (R1) ---
27502751 DM_perennials = 0.18 # dry matter content (t_DM / t_wet)
2751- ch4_mass_fraction_in_biogas = 0.348 # mass fraction CH4 in biogas (check definition in R1)
2752+ ch4_mass_fraction_in_biogas = (
2753+ 0.348 # mass fraction CH4 in biogas (check definition in R1)
2754+ )
27522755 flh_y = 4200 # full-load hours per year (green crops harvest May–Oct)
27532756
27542757 perennials_input_flow = 40 * DM_perennials # t_DM/h
@@ -2758,7 +2761,9 @@ def add_perennials_gbr(
27582761 protein_output_annual = protein_output_flow * flh_y # t_DM/y
27592762
27602763 # (t_biogas / t_DM) * (mass fraction CH4) * (MWh/t_CH4)
2761- biogas_output_flow = 0.29 * ch4_mass_fraction_in_biogas * LHV_ch4 # MWh/h (per t_DM/h basis)
2764+ biogas_output_flow = (
2765+ 0.29 * ch4_mass_fraction_in_biogas * LHV_ch4
2766+ ) # MWh/h (per t_DM/h basis)
27622767
27632768 # electricity input
27642769 electricity_input_flow = 7.33 / 100 * perennials_input_flow
@@ -2823,12 +2828,14 @@ def add_perennials_gbr(
28232828 new_technology_dataframe .loc [(tech_name , "electricity-input" ), years ] = (
28242829 electricity_input_flow / perennials_input_flow
28252830 )
2826- new_technology_dataframe .loc [(tech_name , "electricity-input" ), "unit" ] = "MWh/tDM" # verify!
2831+ new_technology_dataframe .loc [(tech_name , "electricity-input" ), "unit" ] = (
2832+ "MWh/tDM" # verify!
2833+ )
28272834
28282835 # Metadata (apply to whole tech row, like add_carbon_capture)
28292836 new_technology_dataframe .loc [tech_name , "source" ] = source_r1
2830- new_technology_dataframe .loc [tech_name , "further description" ] = sheet_names_dict . get (
2831- tech_name , ""
2837+ new_technology_dataframe .loc [tech_name , "further description" ] = (
2838+ sheet_names_dict . get ( tech_name , "" )
28322839 )
28332840
28342841 # Per-variable descriptions (optional but often nice)
0 commit comments