Apply suggestions from code review

This commit is contained in:
Fabian Neumann 2021-09-30 17:46:26 +02:00 committed by GitHub
parent 90079248a3
commit 18fabd930e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1695,14 +1695,13 @@ def create_nodes_for_heat_sector():
diff = (urban_fraction * central_fraction) - dist_fraction_node diff = (urban_fraction * central_fraction) - dist_fraction_node
progress = get(options["district_heating"]["potential"], investment_year) progress = get(options["district_heating"]["potential"], investment_year)
dist_fraction_node += diff * progress dist_fraction_node += diff * progress
print("************************************") logger.info(
print( "The current district heating share compared to the maximum",
"the current DH share compared to the maximum possible is increased \ "possible is increased by a progress factor of ",
\n by a progress factor of ",
progress, progress,
"resulting DH share: ", "resulting in a district heating share of ",
dist_fraction_node) dist_fraction_node
print("**********************************") )
return nodes, dist_fraction_node, urban_fraction return nodes, dist_fraction_node, urban_fraction
@ -2230,7 +2229,6 @@ if __name__ == "__main__":
lv=1.0, lv=1.0,
sector_opts='Co2L0-168H-T-H-B-I-solar3-dist1', sector_opts='Co2L0-168H-T-H-B-I-solar3-dist1',
planning_horizons="2020", planning_horizons="2020",
planning_horizons="2030",
) )
logging.basicConfig(level=snakemake.config['logging_level']) logging.basicConfig(level=snakemake.config['logging_level'])