deflex.fetch_converter_parameters¶
-
deflex.
fetch_converter_parameters
(results, transformer)[source]¶ Fetch relevant parameters of every Transformer of the energy system.
Returns: Return type: pandas.DataFrame Examples
>>> import deflex as dflx >>> fn = dflx.fetch_test_files("de03_fictive.dflx") >>> my_results = dflx.restore_results(fn) >>> power_plants = [ ... bk[1] for bk in my_results["main"].keys() ... if bk[1] is not None ... and bk[1].label.subtag == "natural gas" ... and isinstance(bk[1], solph.Transformer) ... ] >>> table = fetch_converter_parameters(my_results, power_plants) >>> power_plant = table.iloc[5].dropna() >>> power_plant.name = power_plant.pop("label_str") >>> power_plant allocation method electricity category power plant efficiency, electricity 0.311 emission, fuel 0.201 fuel natural gas, DE specific_costs_electricity 89.041801 specific_emission_electricity 0.646302 variable costs, fuel 27.692 Name: power-plant_natural-gas_031_natural-gas_DE01, dtype: object >>> power_plant = table.iloc[0].dropna() >>> power_plant.name = power_plant.pop("label_str") >>> power_plant allocation method finnish category chp plant efficiency, electricity 0.25 efficiency, heat 0.41 emission, fuel 0.201 fuel natural gas, DE specific_costs_electricity 57.96 specific_costs_heat 32.2 specific_emission_electricity 0.420698 specific_emission_heat 0.233721 variable costs, fuel 27.692 Name: chp-plant_natural-gas_natural-gas_DE01, dtype: object