diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs old mode 100644 new mode 100755 diff --git a/.gitattributes b/.gitattributes old mode 100644 new mode 100755 diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md old mode 100644 new mode 100755 diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml old mode 100644 new mode 100755 diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md old mode 100644 new mode 100755 diff --git a/.github/dependabot.yml b/.github/dependabot.yml old mode 100644 new mode 100755 diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md old mode 100644 new mode 100755 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml old mode 100644 new mode 100755 diff --git a/.github/workflows/update-fixed-env.yaml b/.github/workflows/update-fixed-env.yaml old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml old mode 100644 new mode 100755 diff --git a/.readthedocs.yml b/.readthedocs.yml old mode 100644 new mode 100755 diff --git a/.reuse/dep5 b/.reuse/dep5 old mode 100644 new mode 100755 diff --git a/.sync-send b/.sync-send old mode 100644 new mode 100755 diff --git a/CITATION.cff b/CITATION.cff old mode 100644 new mode 100755 diff --git a/LICENSES/CC-BY-4.0.txt b/LICENSES/CC-BY-4.0.txt old mode 100644 new mode 100755 diff --git a/LICENSES/CC0-1.0.txt b/LICENSES/CC0-1.0.txt old mode 100644 new mode 100755 diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/Snakefile b/Snakefile old mode 100644 new mode 100755 diff --git a/borg-it b/borg-it old mode 100644 new mode 100755 diff --git a/config/config.default.yaml b/config/config.default.yaml old mode 100644 new mode 100755 diff --git a/config/create_scenarios.py b/config/create_scenarios.py old mode 100644 new mode 100755 diff --git a/config/examples/config.entsoe-all.yaml b/config/examples/config.entsoe-all.yaml old mode 100644 new mode 100755 diff --git a/config/examples/config.perfect.yaml b/config/examples/config.perfect.yaml old mode 100644 new mode 100755 diff --git a/config/examples/config.validation.yaml b/config/examples/config.validation.yaml old mode 100644 new mode 100755 diff --git a/config/scenarios.template.yaml b/config/scenarios.template.yaml old mode 100644 new mode 100755 diff --git a/config/test/config.electricity.yaml b/config/test/config.electricity.yaml old mode 100644 new mode 100755 diff --git a/config/test/config.myopic.yaml b/config/test/config.myopic.yaml old mode 100644 new mode 100755 diff --git a/config/test/config.overnight.yaml b/config/test/config.overnight.yaml old mode 100644 new mode 100755 diff --git a/config/test/config.perfect.yaml b/config/test/config.perfect.yaml old mode 100644 new mode 100755 diff --git a/config/test/config.scenarios.yaml b/config/test/config.scenarios.yaml old mode 100644 new mode 100755 diff --git a/config/test/config.validator.yaml b/config/test/config.validator.yaml old mode 100644 new mode 100755 diff --git a/config/test/scenarios.yaml b/config/test/scenarios.yaml old mode 100644 new mode 100755 diff --git a/data/agg_p_nom_minmax.csv b/data/agg_p_nom_minmax.csv old mode 100644 new mode 100755 diff --git a/data/ammonia_plants.csv b/data/ammonia_plants.csv old mode 100644 new mode 100755 diff --git a/data/attributed_ports.json b/data/attributed_ports.json old mode 100644 new mode 100755 diff --git a/data/biomass_transport_costs_supplychain1.csv b/data/biomass_transport_costs_supplychain1.csv old mode 100644 new mode 100755 diff --git a/data/biomass_transport_costs_supplychain2.csv b/data/biomass_transport_costs_supplychain2.csv old mode 100644 new mode 100755 diff --git a/data/cement-plants-noneu.csv b/data/cement-plants-noneu.csv old mode 100644 new mode 100755 diff --git a/data/ch_cantons.csv b/data/ch_cantons.csv old mode 100644 new mode 100755 diff --git a/data/ch_industrial_production_per_subsector.csv b/data/ch_industrial_production_per_subsector.csv old mode 100644 new mode 100755 diff --git a/data/custom_extra_functionality.py b/data/custom_extra_functionality.py old mode 100644 new mode 100755 diff --git a/data/custom_powerplants.csv b/data/custom_powerplants.csv old mode 100644 new mode 100755 diff --git a/data/district_heat_share.csv b/data/district_heat_share.csv old mode 100644 new mode 100755 diff --git a/data/egs_costs.json b/data/egs_costs.json old mode 100644 new mode 100755 diff --git a/data/eia_hydro_annual_capacity.csv b/data/eia_hydro_annual_capacity.csv old mode 100644 new mode 100755 diff --git a/data/eia_hydro_annual_generation.csv b/data/eia_hydro_annual_generation.csv old mode 100644 new mode 100755 diff --git a/data/entsoegridkit/README.md b/data/entsoegridkit/README.md old mode 100644 new mode 100755 diff --git a/data/entsoegridkit/buses.csv b/data/entsoegridkit/buses.csv old mode 100644 new mode 100755 diff --git a/data/entsoegridkit/converters.csv b/data/entsoegridkit/converters.csv old mode 100644 new mode 100755 diff --git a/data/entsoegridkit/generators.csv b/data/entsoegridkit/generators.csv old mode 100644 new mode 100755 diff --git a/data/entsoegridkit/lines.csv b/data/entsoegridkit/lines.csv old mode 100644 new mode 100755 diff --git a/data/entsoegridkit/links.csv b/data/entsoegridkit/links.csv old mode 100644 new mode 100755 diff --git a/data/entsoegridkit/transformers.csv b/data/entsoegridkit/transformers.csv old mode 100644 new mode 100755 diff --git a/data/era5-annual-HDD-per-country.csv b/data/era5-annual-HDD-per-country.csv old mode 100644 new mode 100755 diff --git a/data/era5-annual-runoff-per-country.csv b/data/era5-annual-runoff-per-country.csv old mode 100644 new mode 100755 diff --git a/data/existing_infrastructure/existing_heating_raw.csv b/data/existing_infrastructure/existing_heating_raw.csv old mode 100644 new mode 100755 diff --git a/data/gr-e-11.03.02.01.01-cc.csv b/data/gr-e-11.03.02.01.01-cc.csv old mode 100644 new mode 100755 diff --git a/data/heat_load_profile_BDEW.csv b/data/heat_load_profile_BDEW.csv old mode 100644 new mode 100755 diff --git a/data/hydro_capacities.csv b/data/hydro_capacities.csv old mode 100644 new mode 100755 diff --git a/data/links_p_nom.csv b/data/links_p_nom.csv old mode 100644 new mode 100755 diff --git a/data/nuclear_p_max_pu.csv b/data/nuclear_p_max_pu.csv old mode 100644 new mode 100755 diff --git a/data/parameter_corrections.yaml b/data/parameter_corrections.yaml old mode 100644 new mode 100755 diff --git a/data/refineries-noneu.csv b/data/refineries-noneu.csv old mode 100644 new mode 100755 diff --git a/data/retro/comparative_level_investment.csv b/data/retro/comparative_level_investment.csv old mode 100644 new mode 100755 diff --git a/data/retro/data_building_stock.csv b/data/retro/data_building_stock.csv old mode 100644 new mode 100755 diff --git a/data/retro/electricity_taxes_eu.csv b/data/retro/electricity_taxes_eu.csv old mode 100644 new mode 100755 diff --git a/data/retro/floor_area_missing.csv b/data/retro/floor_area_missing.csv old mode 100644 new mode 100755 diff --git a/data/retro/retro_cost_germany.csv b/data/retro/retro_cost_germany.csv old mode 100644 new mode 100755 diff --git a/data/retro/u_values_poland.csv b/data/retro/u_values_poland.csv old mode 100644 new mode 100755 diff --git a/data/retro/window_assumptions.csv b/data/retro/window_assumptions.csv old mode 100644 new mode 100755 diff --git a/data/switzerland-new_format-all_years.csv b/data/switzerland-new_format-all_years.csv old mode 100644 new mode 100755 diff --git a/data/transmission_projects/nep/new_lines.csv b/data/transmission_projects/nep/new_lines.csv old mode 100644 new mode 100755 diff --git a/data/transmission_projects/nep/new_links.csv b/data/transmission_projects/nep/new_links.csv old mode 100644 new mode 100755 diff --git a/data/transmission_projects/template/new_lines.csv b/data/transmission_projects/template/new_lines.csv old mode 100644 new mode 100755 diff --git a/data/transmission_projects/template/new_links.csv b/data/transmission_projects/template/new_links.csv old mode 100644 new mode 100755 diff --git a/data/transmission_projects/template/upgraded_lines.csv b/data/transmission_projects/template/upgraded_lines.csv old mode 100644 new mode 100755 diff --git a/data/transmission_projects/template/upgraded_links.csv b/data/transmission_projects/template/upgraded_links.csv old mode 100644 new mode 100755 diff --git a/data/transmission_projects/tyndp2020/new_lines.csv b/data/transmission_projects/tyndp2020/new_lines.csv old mode 100644 new mode 100755 diff --git a/data/transmission_projects/tyndp2020/new_links.csv b/data/transmission_projects/tyndp2020/new_links.csv old mode 100644 new mode 100755 diff --git a/data/transmission_projects/tyndp2020/upgraded_lines.csv b/data/transmission_projects/tyndp2020/upgraded_lines.csv old mode 100644 new mode 100755 diff --git a/data/transmission_projects/tyndp2020/upgraded_links.csv b/data/transmission_projects/tyndp2020/upgraded_links.csv old mode 100644 new mode 100755 diff --git a/data/unit_commitment.csv b/data/unit_commitment.csv old mode 100644 new mode 100755 diff --git a/doc/Makefile b/doc/Makefile old mode 100644 new mode 100755 diff --git a/doc/conf.py b/doc/conf.py old mode 100644 new mode 100755 diff --git a/doc/configtables/adjustments.csv b/doc/configtables/adjustments.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/atlite.csv b/doc/configtables/atlite.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/biomass.csv b/doc/configtables/biomass.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/clustering.csv b/doc/configtables/clustering.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/co2_budget.csv b/doc/configtables/co2_budget.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/conventional.csv b/doc/configtables/conventional.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/costs.csv b/doc/configtables/costs.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/countries.csv b/doc/configtables/countries.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/electricity.csv b/doc/configtables/electricity.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/enable.csv b/doc/configtables/enable.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/energy.csv b/doc/configtables/energy.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/existing_capacities.csv b/doc/configtables/existing_capacities.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/foresight.csv b/doc/configtables/foresight.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/hydro.csv b/doc/configtables/hydro.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/industry.csv b/doc/configtables/industry.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/lines.csv b/doc/configtables/lines.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/links.csv b/doc/configtables/links.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/load.csv b/doc/configtables/load.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/offwind-ac.csv b/doc/configtables/offwind-ac.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/offwind-dc.csv b/doc/configtables/offwind-dc.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/onwind.csv b/doc/configtables/onwind.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/opts.csv b/doc/configtables/opts.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/plotting.csv b/doc/configtables/plotting.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/run.csv b/doc/configtables/run.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/scenario.csv b/doc/configtables/scenario.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/sector-opts.csv b/doc/configtables/sector-opts.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/sector.csv b/doc/configtables/sector.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/snapshots.csv b/doc/configtables/snapshots.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/solar-thermal.csv b/doc/configtables/solar-thermal.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/solar.csv b/doc/configtables/solar.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/solving.csv b/doc/configtables/solving.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/toplevel.csv b/doc/configtables/toplevel.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/transformers.csv b/doc/configtables/transformers.csv old mode 100644 new mode 100755 diff --git a/doc/configtables/transmission_projects.csv b/doc/configtables/transmission_projects.csv old mode 100644 new mode 100755 diff --git a/doc/configuration.rst b/doc/configuration.rst old mode 100644 new mode 100755 diff --git a/doc/contributing.rst b/doc/contributing.rst old mode 100644 new mode 100755 diff --git a/doc/costs.rst b/doc/costs.rst old mode 100644 new mode 100755 diff --git a/doc/data_sources.rst b/doc/data_sources.rst old mode 100644 new mode 100755 diff --git a/doc/foresight.rst b/doc/foresight.rst old mode 100644 new mode 100755 diff --git a/doc/img/Heat_and_el_demand_timeseries.png b/doc/img/Heat_and_el_demand_timeseries.png old mode 100644 new mode 100755 diff --git a/doc/img/base.png b/doc/img/base.png old mode 100644 new mode 100755 diff --git a/doc/img/corine.png b/doc/img/corine.png old mode 100644 new mode 100755 diff --git a/doc/img/countries.png b/doc/img/countries.png old mode 100644 new mode 100755 diff --git a/doc/img/country_shapes.png b/doc/img/country_shapes.png old mode 100644 new mode 100755 diff --git a/doc/img/demand-map-heat.png b/doc/img/demand-map-heat.png old mode 100644 new mode 100755 diff --git a/doc/img/distance_hist.png b/doc/img/distance_hist.png old mode 100644 new mode 100755 diff --git a/doc/img/eez.png b/doc/img/eez.png old mode 100644 new mode 100755 diff --git a/doc/img/elec.png b/doc/img/elec.png old mode 100644 new mode 100755 diff --git a/doc/img/elec_s.png b/doc/img/elec_s.png old mode 100644 new mode 100755 diff --git a/doc/img/elec_s_128.png b/doc/img/elec_s_128.png old mode 100644 new mode 100755 diff --git a/doc/img/elec_s_256.png b/doc/img/elec_s_256.png old mode 100644 new mode 100755 diff --git a/doc/img/elec_s_37.png b/doc/img/elec_s_37.png old mode 100644 new mode 100755 diff --git a/doc/img/elec_s_512.png b/doc/img/elec_s_512.png old mode 100644 new mode 100755 diff --git a/doc/img/elec_s_X.png b/doc/img/elec_s_X.png old mode 100644 new mode 100755 diff --git a/doc/img/eligibility.png b/doc/img/eligibility.png old mode 100644 new mode 100755 diff --git a/doc/img/era5.png b/doc/img/era5.png old mode 100644 new mode 100755 diff --git a/doc/img/europe_shape.png b/doc/img/europe_shape.png old mode 100644 new mode 100755 diff --git a/doc/img/fec_industry_today_tomorrow.png b/doc/img/fec_industry_today_tomorrow.png old mode 100644 new mode 100755 diff --git a/doc/img/gas_pipeline_figure.png b/doc/img/gas_pipeline_figure.png old mode 100644 new mode 100755 diff --git a/doc/img/gebco_2019_grid_image.jpg b/doc/img/gebco_2019_grid_image.jpg old mode 100644 new mode 100755 diff --git a/doc/img/hotmaps.png b/doc/img/hotmaps.png old mode 100644 new mode 100755 diff --git a/doc/img/hydrocapacities.png b/doc/img/hydrocapacities.png old mode 100644 new mode 100755 diff --git a/doc/img/hydrogeneration.png b/doc/img/hydrogeneration.png old mode 100644 new mode 100755 diff --git a/doc/img/inflow-box.png b/doc/img/inflow-box.png old mode 100644 new mode 100755 diff --git a/doc/img/inflow-ts.png b/doc/img/inflow-ts.png old mode 100644 new mode 100755 diff --git a/doc/img/intro-workflow.png b/doc/img/intro-workflow.png old mode 100644 new mode 100755 diff --git a/doc/img/load-box.png b/doc/img/load-box.png old mode 100644 new mode 100755 diff --git a/doc/img/load-ts.png b/doc/img/load-ts.png old mode 100644 new mode 100755 diff --git a/doc/img/multisector_figure.pdf b/doc/img/multisector_figure.pdf old mode 100644 new mode 100755 diff --git a/doc/img/multisector_figure.png b/doc/img/multisector_figure.png old mode 100644 new mode 100755 diff --git a/doc/img/multisector_figure.svg b/doc/img/multisector_figure.svg old mode 100644 new mode 100755 diff --git a/doc/img/natura.png b/doc/img/natura.png old mode 100644 new mode 100755 diff --git a/doc/img/nuts3.png b/doc/img/nuts3.png old mode 100644 new mode 100755 diff --git a/doc/img/nuts3_shapes.png b/doc/img/nuts3_shapes.png old mode 100644 new mode 100755 diff --git a/doc/img/offshore_shapes.png b/doc/img/offshore_shapes.png old mode 100644 new mode 100755 diff --git a/doc/img/offwindac-gridcell.png b/doc/img/offwindac-gridcell.png old mode 100644 new mode 100755 diff --git a/doc/img/offwinddc-gridcell.png b/doc/img/offwinddc-gridcell.png old mode 100644 new mode 100755 diff --git a/doc/img/onwind-gridcell.png b/doc/img/onwind-gridcell.png old mode 100644 new mode 100755 diff --git a/doc/img/p_nom_max_hist.png b/doc/img/p_nom_max_hist.png old mode 100644 new mode 100755 diff --git a/doc/img/potential_heatmap.png b/doc/img/potential_heatmap.png old mode 100644 new mode 100755 diff --git a/doc/img/powerplantmatching.png b/doc/img/powerplantmatching.png old mode 100644 new mode 100755 diff --git a/doc/img/process-emissions.png b/doc/img/process-emissions.png old mode 100644 new mode 100755 diff --git a/doc/img/profile_ts.png b/doc/img/profile_ts.png old mode 100644 new mode 100755 diff --git a/doc/img/pypsa-eur-grid.png b/doc/img/pypsa-eur-grid.png old mode 100644 new mode 100755 diff --git a/doc/img/regions_offshore.png b/doc/img/regions_offshore.png old mode 100644 new mode 100755 diff --git a/doc/img/regions_offshore_elec_s.png b/doc/img/regions_offshore_elec_s.png old mode 100644 new mode 100755 diff --git a/doc/img/regions_offshore_elec_s_X.png b/doc/img/regions_offshore_elec_s_X.png old mode 100644 new mode 100755 diff --git a/doc/img/regions_onshore.png b/doc/img/regions_onshore.png old mode 100644 new mode 100755 diff --git a/doc/img/regions_onshore_elec_s.png b/doc/img/regions_onshore_elec_s.png old mode 100644 new mode 100755 diff --git a/doc/img/regions_onshore_elec_s_X.png b/doc/img/regions_onshore_elec_s_X.png old mode 100644 new mode 100755 diff --git a/doc/img/results.png b/doc/img/results.png old mode 100644 new mode 100755 diff --git a/doc/img/sarah.png b/doc/img/sarah.png old mode 100644 new mode 100755 diff --git a/doc/img/scenarios.png b/doc/img/scenarios.png old mode 100644 new mode 100755 diff --git a/doc/img/solar-gridcell.png b/doc/img/solar-gridcell.png old mode 100644 new mode 100755 diff --git a/doc/img/synchronisation.png b/doc/img/synchronisation.png old mode 100644 new mode 100755 diff --git a/doc/img/tech-colors.png b/doc/img/tech-colors.png old mode 100644 new mode 100755 diff --git a/doc/img/underwater_hist.png b/doc/img/underwater_hist.png old mode 100644 new mode 100755 diff --git a/doc/img/validation_production_bar_elec_s_37_ec_lv1.0_Ept.png b/doc/img/validation_production_bar_elec_s_37_ec_lv1.0_Ept.png old mode 100644 new mode 100755 diff --git a/doc/img/validation_seasonal_operation_area_elec_s_37_ec_lv1.0_Ept.png b/doc/img/validation_seasonal_operation_area_elec_s_37_ec_lv1.0_Ept.png old mode 100644 new mode 100755 diff --git a/doc/img/workflow.png b/doc/img/workflow.png old mode 100644 new mode 100755 diff --git a/doc/index.rst b/doc/index.rst old mode 100644 new mode 100755 diff --git a/doc/installation.rst b/doc/installation.rst old mode 100644 new mode 100755 diff --git a/doc/introduction.rst b/doc/introduction.rst old mode 100644 new mode 100755 diff --git a/doc/licenses.rst b/doc/licenses.rst old mode 100644 new mode 100755 diff --git a/doc/limitations.rst b/doc/limitations.rst old mode 100644 new mode 100755 diff --git a/doc/make.bat b/doc/make.bat old mode 100644 new mode 100755 diff --git a/doc/plotting.rst b/doc/plotting.rst old mode 100644 new mode 100755 diff --git a/doc/preparation.rst b/doc/preparation.rst old mode 100644 new mode 100755 diff --git a/doc/publications.bib b/doc/publications.bib old mode 100644 new mode 100755 diff --git a/doc/publications.rst b/doc/publications.rst old mode 100644 new mode 100755 diff --git a/doc/release_notes.rst b/doc/release_notes.rst old mode 100644 new mode 100755 diff --git a/doc/requirements.txt b/doc/requirements.txt old mode 100644 new mode 100755 diff --git a/doc/retrieve.rst b/doc/retrieve.rst old mode 100644 new mode 100755 diff --git a/doc/sector.rst b/doc/sector.rst old mode 100644 new mode 100755 diff --git a/doc/simplification.rst b/doc/simplification.rst old mode 100644 new mode 100755 diff --git a/doc/solving.rst b/doc/solving.rst old mode 100644 new mode 100755 diff --git a/doc/spatial_resolution.rst b/doc/spatial_resolution.rst old mode 100644 new mode 100755 diff --git a/doc/supply_demand.rst b/doc/supply_demand.rst old mode 100644 new mode 100755 diff --git a/doc/support.rst b/doc/support.rst old mode 100644 new mode 100755 diff --git a/doc/tutorial.rst b/doc/tutorial.rst old mode 100644 new mode 100755 diff --git a/doc/tutorial_sector.rst b/doc/tutorial_sector.rst old mode 100644 new mode 100755 diff --git a/doc/validation.rst b/doc/validation.rst old mode 100644 new mode 100755 diff --git a/doc/wildcards.rst b/doc/wildcards.rst old mode 100644 new mode 100755 diff --git a/envs/environment.fixed.yaml b/envs/environment.fixed.yaml old mode 100644 new mode 100755 diff --git a/envs/environment.yaml b/envs/environment.yaml old mode 100644 new mode 100755 diff --git a/envs/retrieve.yaml b/envs/retrieve.yaml old mode 100644 new mode 100755 diff --git a/matplotlibrc b/matplotlibrc old mode 100644 new mode 100755 diff --git a/rules/collect.smk b/rules/collect.smk old mode 100644 new mode 100755 diff --git a/rules/common.smk b/rules/common.smk old mode 100644 new mode 100755 diff --git a/rules/development.smk b/rules/development.smk old mode 100644 new mode 100755 diff --git a/rules/postprocess.smk b/rules/postprocess.smk old mode 100644 new mode 100755 diff --git a/rules/solve_electricity.smk b/rules/solve_electricity.smk old mode 100644 new mode 100755 diff --git a/rules/solve_myopic.smk b/rules/solve_myopic.smk old mode 100644 new mode 100755 diff --git a/rules/solve_overnight.smk b/rules/solve_overnight.smk old mode 100644 new mode 100755 diff --git a/rules/solve_perfect.smk b/rules/solve_perfect.smk old mode 100644 new mode 100755 diff --git a/rules/validate.smk b/rules/validate.smk old mode 100644 new mode 100755 diff --git a/scripts/__init__.py b/scripts/__init__.py old mode 100644 new mode 100755 diff --git a/scripts/_benchmark.py b/scripts/_benchmark.py old mode 100644 new mode 100755 diff --git a/scripts/_helpers.py b/scripts/_helpers.py old mode 100644 new mode 100755 diff --git a/scripts/add_brownfield.py b/scripts/add_brownfield.py old mode 100644 new mode 100755 diff --git a/scripts/add_existing_baseyear.py b/scripts/add_existing_baseyear.py old mode 100644 new mode 100755 index 65cc73e119..8f25ceb85a --- a/scripts/add_existing_baseyear.py +++ b/scripts/add_existing_baseyear.py @@ -445,7 +445,9 @@ def add_chp_plants(n, grouping_years, costs, baseyear): ppl = pd.read_csv(snakemake.input.powerplants, index_col=0) if snakemake.input.get("custom_powerplants"): - if snakemake.input.custom_powerplants.endswith("german_chp_{clusters}.csv"): + if snakemake.input.custom_powerplants.endswith( + f"german_chp_base_s_{snakemake.wildcards.clusters}_l{snakemake.wildcards.ll}_{snakemake.wildcards.opts}_{snakemake.wildcards.sector_opts}_{snakemake.wildcards.planning_horizons}.csv" + ): logger.info("Supersedeing default German CHPs with custom_powerplants.") ppl = ppl.query("~(Set == 'CHP' and Country == 'DE')") ppl = add_custom_powerplants(ppl, snakemake.input.custom_powerplants, True) @@ -462,6 +464,14 @@ def add_chp_plants(n, grouping_years, costs, baseyear): # phase out date at the end of the year) chp.Fueltype = chp.Fueltype.map(rename_fuel) + # assign clustered bus + # chp["bus"] = chp["bus"].astype(int) + # chp["cluster_bus"] = chp.bus.map(clustermaps) + # if snakemake.params.add_district_heating_subnodes: + # chp.loc[chp.subnode.notna(), "cluster_bus"] = chp.loc[ + # chp.subnode.notna(), "subnode" + # ] + chp["grouping_year"] = np.take( grouping_years, np.digitize(chp.DateIn, grouping_years, right=True) ) @@ -561,7 +571,7 @@ def add_chp_plants(n, grouping_years, costs, baseyear): p_nom.index, suffix=f" urban central {generator} CHP-{grouping_year}", bus0=bus0, - bus1=p_nom.index, + bus1=p_nom.index.str.split().str[:2].str.join(" "), bus2=p_nom.index + " urban central heat", bus3="co2 atmosphere", carrier=f"urban central {generator} CHP", @@ -570,8 +580,8 @@ def add_chp_plants(n, grouping_years, costs, baseyear): overnight_cost=costs.at[key, "investment"] * costs.at[key, "efficiency"], marginal_cost=costs.at[key, "VOM"], - efficiency=efficiency_power.dropna(), - efficiency2=efficiency_heat.dropna(), + efficiency=efficiency_power[p_nom.index], + efficiency2=efficiency_heat[p_nom.index], efficiency3=costs.at[generator, "CO2 intensity"], build_year=grouping_year, lifetime=costs.at[key, "lifetime"], @@ -582,8 +592,10 @@ def add_chp_plants(n, grouping_years, costs, baseyear): "Link", p_nom.index, suffix=f" urban {key}-{grouping_year}", - bus0=spatial.biomass.df.loc[p_nom.index]["nodes"], - bus1=p_nom.index, + bus0=spatial.biomass.df.loc[ + p_nom.index.str.split().str[:2].str.join(" ") + ]["nodes"].values, + bus1=p_nom.index.str.split().str[:2].str.join(" "), bus2=p_nom.index + " urban central heat", carrier=generator, p_nom=p_nom, @@ -591,8 +603,8 @@ def add_chp_plants(n, grouping_years, costs, baseyear): overnight_cost=costs.at[key, "investment"] * costs.at[key, "efficiency"], marginal_cost=costs.at[key, "VOM"], - efficiency=efficiency_power, - efficiency2=efficiency_heat, + efficiency=efficiency_power[p_nom.index], + efficiency2=efficiency_heat[p_nom.index], build_year=grouping_year, lifetime=costs.at[key, "lifetime"], ) @@ -621,7 +633,7 @@ def add_chp_plants(n, grouping_years, costs, baseyear): p_nom.index, suffix=f" urban central {generator} CHP-{grouping_year}", bus0=bus0, - bus1=p_nom.index, + bus1=p_nom.index.str.split().str[:2].str.join(" "), bus2=p_nom.index + " urban central heat", bus3="co2 atmosphere", carrier=f"urban central {generator} CHP", @@ -642,8 +654,10 @@ def add_chp_plants(n, grouping_years, costs, baseyear): "Link", p_nom.index, suffix=f" urban {key}-{grouping_year}", - bus0=spatial.biomass.df.loc[p_nom.index]["nodes"], - bus1=p_nom.index, + bus0=spatial.biomass.df.loc[ + p_nom.index.str.split().str[:2].str.join(" ") + ]["nodes"].values, + bus1=p_nom.index.str.split().str[:2].str.join(" "), bus2=p_nom.index + " urban central heat", carrier=generator, p_nom=p_nom / costs.at[key, "efficiency"], @@ -784,8 +798,10 @@ def add_heating_capacities_installed_before_baseyear( "electricity_distribution_grid" ]: nodes_elec = nodes + " low voltage" + nodes_biomass = nodes else: - nodes_elec = nodes + nodes_elec = nodes.str.split().str[:2].str.join(" ") + nodes_biomass = nodes_elec too_large_grouping_years = [ gy for gy in grouping_years if gy >= int(baseyear) @@ -826,7 +842,10 @@ def add_heating_capacities_installed_before_baseyear( name=nodes, ) .to_pandas() - .reindex(index=n.snapshots) + .T.reset_index() + .drop_duplicates() + .set_index("name") + .T.reindex(index=n.snapshots) if time_dep_hp_cop else costs.at[costs_name, "efficiency"] ) @@ -944,7 +963,7 @@ def add_heating_capacities_installed_before_baseyear( "Link", nodes, suffix=f" {heat_system} biomass boiler-{grouping_year}", - bus0=spatial.biomass.df.loc[nodes, "nodes"].values, + bus0=spatial.biomass.df.loc[nodes_biomass, "nodes"].values, bus1=nodes + " " + heat_system.value + " heat", carrier=heat_system.value + " biomass boiler", efficiency=costs.at["biomass boiler", "efficiency"], @@ -1006,9 +1025,10 @@ def set_defaults(n): snakemake = mock_snakemake( "add_existing_baseyear", - configfiles="config/test/config.myopic.yaml", - clusters="5", - ll="v1.5", + # configfiles="config/test/config.myopic.yaml", + # clusters="5", + clusters="27", + ll="vopt", opts="", sector_opts="none", planning_horizons="2020", diff --git a/scripts/base_network.py b/scripts/base_network.py old mode 100644 new mode 100755 diff --git a/scripts/build_ammonia_production.py b/scripts/build_ammonia_production.py old mode 100644 new mode 100755 diff --git a/scripts/build_biomass_transport_costs.py b/scripts/build_biomass_transport_costs.py old mode 100644 new mode 100755 diff --git a/scripts/build_central_heating_temperature_profiles/central_heating_temperature_approximator.py b/scripts/build_central_heating_temperature_profiles/central_heating_temperature_approximator.py old mode 100644 new mode 100755 diff --git a/scripts/build_central_heating_temperature_profiles/run.py b/scripts/build_central_heating_temperature_profiles/run.py old mode 100644 new mode 100755 diff --git a/scripts/build_clustered_population_layouts.py b/scripts/build_clustered_population_layouts.py old mode 100644 new mode 100755 diff --git a/scripts/build_cop_profiles/BaseCopApproximator.py b/scripts/build_cop_profiles/BaseCopApproximator.py old mode 100644 new mode 100755 diff --git a/scripts/build_cop_profiles/CentralHeatingCopApproximator.py b/scripts/build_cop_profiles/CentralHeatingCopApproximator.py old mode 100644 new mode 100755 diff --git a/scripts/build_cop_profiles/DecentralHeatingCopApproximator.py b/scripts/build_cop_profiles/DecentralHeatingCopApproximator.py old mode 100644 new mode 100755 diff --git a/scripts/build_cop_profiles/run.py b/scripts/build_cop_profiles/run.py old mode 100644 new mode 100755 diff --git a/scripts/build_cross_border_flows.py b/scripts/build_cross_border_flows.py old mode 100644 new mode 100755 diff --git a/scripts/build_cutout.py b/scripts/build_cutout.py old mode 100644 new mode 100755 diff --git a/scripts/build_daily_heat_demand.py b/scripts/build_daily_heat_demand.py old mode 100644 new mode 100755 diff --git a/scripts/build_district_heat_share.py b/scripts/build_district_heat_share.py old mode 100644 new mode 100755 diff --git a/scripts/build_egs_potentials.py b/scripts/build_egs_potentials.py old mode 100644 new mode 100755 diff --git a/scripts/build_electricity_prices.py b/scripts/build_electricity_prices.py old mode 100644 new mode 100755 diff --git a/scripts/build_electricity_production.py b/scripts/build_electricity_production.py old mode 100644 new mode 100755 diff --git a/scripts/build_energy_totals.py b/scripts/build_energy_totals.py old mode 100644 new mode 100755 diff --git a/scripts/build_existing_heating_distribution.py b/scripts/build_existing_heating_distribution.py old mode 100644 new mode 100755 diff --git a/scripts/build_gas_input_locations.py b/scripts/build_gas_input_locations.py old mode 100644 new mode 100755 diff --git a/scripts/build_gas_network.py b/scripts/build_gas_network.py old mode 100644 new mode 100755 diff --git a/scripts/build_gdp_pop_non_nuts3.py b/scripts/build_gdp_pop_non_nuts3.py old mode 100644 new mode 100755 diff --git a/scripts/build_heat_totals.py b/scripts/build_heat_totals.py old mode 100644 new mode 100755 diff --git a/scripts/build_hourly_heat_demand.py b/scripts/build_hourly_heat_demand.py old mode 100644 new mode 100755 diff --git a/scripts/build_hydro_profile.py b/scripts/build_hydro_profile.py old mode 100644 new mode 100755 diff --git a/scripts/build_industrial_distribution_key.py b/scripts/build_industrial_distribution_key.py old mode 100644 new mode 100755 diff --git a/scripts/build_industrial_energy_demand_per_country_today.py b/scripts/build_industrial_energy_demand_per_country_today.py old mode 100644 new mode 100755 diff --git a/scripts/build_industrial_energy_demand_per_node.py b/scripts/build_industrial_energy_demand_per_node.py old mode 100644 new mode 100755 diff --git a/scripts/build_industrial_energy_demand_per_node_today.py b/scripts/build_industrial_energy_demand_per_node_today.py old mode 100644 new mode 100755 diff --git a/scripts/build_industrial_production_per_country.py b/scripts/build_industrial_production_per_country.py old mode 100644 new mode 100755 diff --git a/scripts/build_industrial_production_per_country_tomorrow.py b/scripts/build_industrial_production_per_country_tomorrow.py old mode 100644 new mode 100755 diff --git a/scripts/build_industrial_production_per_node.py b/scripts/build_industrial_production_per_node.py old mode 100644 new mode 100755 diff --git a/scripts/build_industry_sector_ratios.py b/scripts/build_industry_sector_ratios.py old mode 100644 new mode 100755 diff --git a/scripts/build_industry_sector_ratios_intermediate.py b/scripts/build_industry_sector_ratios_intermediate.py old mode 100644 new mode 100755 diff --git a/scripts/build_monthly_prices.py b/scripts/build_monthly_prices.py old mode 100644 new mode 100755 diff --git a/scripts/build_osm_network.py b/scripts/build_osm_network.py old mode 100644 new mode 100755 diff --git a/scripts/build_population_layouts.py b/scripts/build_population_layouts.py old mode 100644 new mode 100755 diff --git a/scripts/build_population_weighted_energy_totals.py b/scripts/build_population_weighted_energy_totals.py old mode 100644 new mode 100755 diff --git a/scripts/build_renewable_profiles.py b/scripts/build_renewable_profiles.py old mode 100644 new mode 100755 diff --git a/scripts/build_salt_cavern_potentials.py b/scripts/build_salt_cavern_potentials.py old mode 100644 new mode 100755 diff --git a/scripts/build_sequestration_potentials.py b/scripts/build_sequestration_potentials.py old mode 100644 new mode 100755 diff --git a/scripts/build_ship_raster.py b/scripts/build_ship_raster.py old mode 100644 new mode 100755 diff --git a/scripts/build_shipping_demand.py b/scripts/build_shipping_demand.py old mode 100644 new mode 100755 diff --git a/scripts/build_solar_thermal_profiles.py b/scripts/build_solar_thermal_profiles.py old mode 100644 new mode 100755 diff --git a/scripts/build_temperature_profiles.py b/scripts/build_temperature_profiles.py old mode 100644 new mode 100755 diff --git a/scripts/build_transmission_projects.py b/scripts/build_transmission_projects.py old mode 100644 new mode 100755 diff --git a/scripts/build_transport_demand.py b/scripts/build_transport_demand.py old mode 100644 new mode 100755 diff --git a/scripts/clean_osm_data.py b/scripts/clean_osm_data.py old mode 100644 new mode 100755 diff --git a/scripts/cluster_network.py b/scripts/cluster_network.py old mode 100644 new mode 100755 diff --git a/scripts/definitions/heat_sector.py b/scripts/definitions/heat_sector.py old mode 100644 new mode 100755 diff --git a/scripts/definitions/heat_system.py b/scripts/definitions/heat_system.py old mode 100644 new mode 100755 diff --git a/scripts/definitions/heat_system_type.py b/scripts/definitions/heat_system_type.py old mode 100644 new mode 100755 diff --git a/scripts/determine_availability_matrix_MD_UA.py b/scripts/determine_availability_matrix_MD_UA.py old mode 100644 new mode 100755 diff --git a/scripts/make_summary.py b/scripts/make_summary.py old mode 100644 new mode 100755 diff --git a/scripts/make_summary_perfect.py b/scripts/make_summary_perfect.py old mode 100644 new mode 100755 diff --git a/scripts/plot_gas_network.py b/scripts/plot_gas_network.py old mode 100644 new mode 100755 diff --git a/scripts/plot_hydrogen_network.py b/scripts/plot_hydrogen_network.py old mode 100644 new mode 100755 diff --git a/scripts/plot_power_network.py b/scripts/plot_power_network.py old mode 100644 new mode 100755 diff --git a/scripts/plot_power_network_clustered.py b/scripts/plot_power_network_clustered.py old mode 100644 new mode 100755 diff --git a/scripts/plot_power_network_perfect.py b/scripts/plot_power_network_perfect.py old mode 100644 new mode 100755 diff --git a/scripts/plot_statistics.py b/scripts/plot_statistics.py old mode 100644 new mode 100755 diff --git a/scripts/plot_statistics_comparison.py b/scripts/plot_statistics_comparison.py old mode 100644 new mode 100755 diff --git a/scripts/plot_statistics_single.py b/scripts/plot_statistics_single.py old mode 100644 new mode 100755 diff --git a/scripts/plot_summary.py b/scripts/plot_summary.py old mode 100644 new mode 100755 diff --git a/scripts/plot_validation_cross_border_flows.py b/scripts/plot_validation_cross_border_flows.py old mode 100644 new mode 100755 diff --git a/scripts/plot_validation_electricity_prices.py b/scripts/plot_validation_electricity_prices.py old mode 100644 new mode 100755 diff --git a/scripts/plot_validation_electricity_production.py b/scripts/plot_validation_electricity_production.py old mode 100644 new mode 100755 diff --git a/scripts/prepare_osm_network_release.py b/scripts/prepare_osm_network_release.py old mode 100644 new mode 100755 diff --git a/scripts/prepare_perfect_foresight.py b/scripts/prepare_perfect_foresight.py old mode 100644 new mode 100755 diff --git a/scripts/retrieve_cost_data.py b/scripts/retrieve_cost_data.py old mode 100644 new mode 100755 diff --git a/scripts/retrieve_databundle.py b/scripts/retrieve_databundle.py old mode 100644 new mode 100755 diff --git a/scripts/retrieve_electricity_demand.py b/scripts/retrieve_electricity_demand.py old mode 100644 new mode 100755 diff --git a/scripts/retrieve_eurostat_data.py b/scripts/retrieve_eurostat_data.py old mode 100644 new mode 100755 diff --git a/scripts/retrieve_eurostat_household_data.py b/scripts/retrieve_eurostat_household_data.py old mode 100644 new mode 100755 diff --git a/scripts/retrieve_gas_infrastructure_data.py b/scripts/retrieve_gas_infrastructure_data.py old mode 100644 new mode 100755 diff --git a/scripts/retrieve_jrc_idees.py b/scripts/retrieve_jrc_idees.py old mode 100644 new mode 100755 diff --git a/scripts/retrieve_monthly_fuel_prices.py b/scripts/retrieve_monthly_fuel_prices.py old mode 100644 new mode 100755 diff --git a/scripts/retrieve_osm_data.py b/scripts/retrieve_osm_data.py old mode 100644 new mode 100755 diff --git a/scripts/simplify_network.py b/scripts/simplify_network.py old mode 100644 new mode 100755 diff --git a/scripts/solve_network.py b/scripts/solve_network.py old mode 100644 new mode 100755 diff --git a/scripts/solve_operations_network.py b/scripts/solve_operations_network.py old mode 100644 new mode 100755 diff --git a/scripts/time_aggregation.py b/scripts/time_aggregation.py old mode 100644 new mode 100755 diff --git a/scripts/write_statistics.py b/scripts/write_statistics.py old mode 100644 new mode 100755