From 93d9e13f5220573c438c7d6e66aaa315cee39a72 Mon Sep 17 00:00:00 2001 From: Fabian Neumann Date: Mon, 6 Mar 2023 18:49:23 +0100 Subject: [PATCH] add spdx identifiers to scripts --- matplotlibrc | 3 +++ scripts/add_brownfield.py | 3 +++ scripts/add_existing_baseyear.py | 3 +++ scripts/build_ammonia_production.py | 3 +++ scripts/build_biomass_potentials.py | 4 ++++ scripts/build_biomass_transport_costs.py | 4 ++++ scripts/build_clustered_population_layouts.py | 4 ++++ scripts/build_cop_profiles.py | 4 ++++ scripts/build_energy_totals.py | 4 ++++ scripts/build_gas_input_locations.py | 4 ++++ scripts/build_gas_network.py | 4 ++++ scripts/build_heat_demand.py | 4 ++++ scripts/build_industrial_distribution_key.py | 4 ++++ scripts/build_industrial_energy_demand_per_country_today.py | 4 ++++ scripts/build_industrial_energy_demand_per_node.py | 4 ++++ scripts/build_industrial_energy_demand_per_node_today.py | 4 ++++ scripts/build_industrial_production_per_country.py | 4 ++++ scripts/build_industrial_production_per_country_tomorrow.py | 4 ++++ scripts/build_industrial_production_per_node.py | 4 ++++ scripts/build_industry_sector_ratios.py | 4 ++++ scripts/build_population_layouts.py | 4 ++++ scripts/build_population_weighted_energy_totals.py | 4 ++++ scripts/build_retro_cost.py | 4 ++++ scripts/build_salt_cavern_potentials.py | 4 ++++ scripts/build_sequestration_potentials.py | 4 ++++ scripts/build_shipping_demand.py | 3 +++ scripts/build_solar_thermal_profiles.py | 4 ++++ scripts/build_temperature_profiles.py | 4 ++++ scripts/build_transport_demand.py | 4 ++++ scripts/cluster_gas_network.py | 4 ++++ scripts/copy_config.py | 3 +++ scripts/helper.py | 4 ++++ scripts/make_summary.py | 4 ++++ scripts/plot_network.py | 4 ++++ scripts/plot_summary.py | 4 ++++ scripts/prepare_sector_network.py | 3 +++ scripts/retrieve_gas_infrastructure_data.py | 3 +++ scripts/retrieve_sector_databundle.py | 3 +++ scripts/solve_sector_network.py | 3 +++ 39 files changed, 146 insertions(+) diff --git a/matplotlibrc b/matplotlibrc index aa996c7f..2cc4c229 100644 --- a/matplotlibrc +++ b/matplotlibrc @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: : 2017-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: CC0-1.0 font.family: sans-serif font.sans-serif: Ubuntu, DejaVu Sans image.cmap: viridis diff --git a/scripts/add_brownfield.py b/scripts/add_brownfield.py index a25ea5d0..e1ecda0c 100644 --- a/scripts/add_brownfield.py +++ b/scripts/add_brownfield.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT import logging diff --git a/scripts/add_existing_baseyear.py b/scripts/add_existing_baseyear.py index e13c27ca..4b1a4fa8 100644 --- a/scripts/add_existing_baseyear.py +++ b/scripts/add_existing_baseyear.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT import logging diff --git a/scripts/build_ammonia_production.py b/scripts/build_ammonia_production.py index 25e08a3e..c0ed7cf3 100644 --- a/scripts/build_ammonia_production.py +++ b/scripts/build_ammonia_production.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT """ Build ammonia production. """ diff --git a/scripts/build_biomass_potentials.py b/scripts/build_biomass_potentials.py index b22adbda..c0b059bc 100644 --- a/scripts/build_biomass_potentials.py +++ b/scripts/build_biomass_potentials.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2021-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + import geopandas as gpd import pandas as pd diff --git a/scripts/build_biomass_transport_costs.py b/scripts/build_biomass_transport_costs.py index 4820985e..8b6b6927 100644 --- a/scripts/build_biomass_transport_costs.py +++ b/scripts/build_biomass_transport_costs.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Reads biomass transport costs for different countries of the JRC report. diff --git a/scripts/build_clustered_population_layouts.py b/scripts/build_clustered_population_layouts.py index 515a1e9e..9703c96f 100644 --- a/scripts/build_clustered_population_layouts.py +++ b/scripts/build_clustered_population_layouts.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build clustered population layouts. """ diff --git a/scripts/build_cop_profiles.py b/scripts/build_cop_profiles.py index f26bfca9..85d8da30 100644 --- a/scripts/build_cop_profiles.py +++ b/scripts/build_cop_profiles.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build COP time series for air- or ground-sourced heat pumps. """ diff --git a/scripts/build_energy_totals.py b/scripts/build_energy_totals.py index 9c5948cd..07d7baac 100644 --- a/scripts/build_energy_totals.py +++ b/scripts/build_energy_totals.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + import logging logger = logging.getLogger(__name__) diff --git a/scripts/build_gas_input_locations.py b/scripts/build_gas_input_locations.py index b6ffee06..1da9fff1 100644 --- a/scripts/build_gas_input_locations.py +++ b/scripts/build_gas_input_locations.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2021-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build import locations for fossil gas from entry-points, LNG terminals and production sites. diff --git a/scripts/build_gas_network.py b/scripts/build_gas_network.py index 72c2f93c..a427d4eb 100644 --- a/scripts/build_gas_network.py +++ b/scripts/build_gas_network.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Preprocess gas network based on data from bthe SciGRID Gas project (https://www.gas.scigrid.de/). diff --git a/scripts/build_heat_demand.py b/scripts/build_heat_demand.py index 2dfa0a18..c00054c3 100644 --- a/scripts/build_heat_demand.py +++ b/scripts/build_heat_demand.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build heat demand time series. """ diff --git a/scripts/build_industrial_distribution_key.py b/scripts/build_industrial_distribution_key.py index 0502bf0f..436f6989 100644 --- a/scripts/build_industrial_distribution_key.py +++ b/scripts/build_industrial_distribution_key.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build industrial distribution keys from hotmaps database. """ diff --git a/scripts/build_industrial_energy_demand_per_country_today.py b/scripts/build_industrial_energy_demand_per_country_today.py index 3bf6ceee..00f41f03 100644 --- a/scripts/build_industrial_energy_demand_per_country_today.py +++ b/scripts/build_industrial_energy_demand_per_country_today.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build industrial energy demand per country. """ diff --git a/scripts/build_industrial_energy_demand_per_node.py b/scripts/build_industrial_energy_demand_per_node.py index 10e10ab8..7b2a3d9b 100644 --- a/scripts/build_industrial_energy_demand_per_node.py +++ b/scripts/build_industrial_energy_demand_per_node.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build industrial energy demand per node. """ diff --git a/scripts/build_industrial_energy_demand_per_node_today.py b/scripts/build_industrial_energy_demand_per_node_today.py index 85b4b99a..902bca20 100644 --- a/scripts/build_industrial_energy_demand_per_node_today.py +++ b/scripts/build_industrial_energy_demand_per_node_today.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build industrial energy demand per node. """ diff --git a/scripts/build_industrial_production_per_country.py b/scripts/build_industrial_production_per_country.py index b56956db..99a8b750 100644 --- a/scripts/build_industrial_production_per_country.py +++ b/scripts/build_industrial_production_per_country.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build industrial production per country. """ diff --git a/scripts/build_industrial_production_per_country_tomorrow.py b/scripts/build_industrial_production_per_country_tomorrow.py index 05845f06..350f3c4d 100644 --- a/scripts/build_industrial_production_per_country_tomorrow.py +++ b/scripts/build_industrial_production_per_country_tomorrow.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build future industrial production per country. """ diff --git a/scripts/build_industrial_production_per_node.py b/scripts/build_industrial_production_per_node.py index 7ddd21be..ea56ee2b 100644 --- a/scripts/build_industrial_production_per_node.py +++ b/scripts/build_industrial_production_per_node.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build industrial production per node. """ diff --git a/scripts/build_industry_sector_ratios.py b/scripts/build_industry_sector_ratios.py index c62ee9dd..89e35057 100644 --- a/scripts/build_industry_sector_ratios.py +++ b/scripts/build_industry_sector_ratios.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build industry sector ratios. """ diff --git a/scripts/build_population_layouts.py b/scripts/build_population_layouts.py index fb88b796..4eb590a6 100644 --- a/scripts/build_population_layouts.py +++ b/scripts/build_population_layouts.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build mapping between grid cells and population (total, urban, rural) """ diff --git a/scripts/build_population_weighted_energy_totals.py b/scripts/build_population_weighted_energy_totals.py index 9b4fb2b1..252ced2d 100644 --- a/scripts/build_population_weighted_energy_totals.py +++ b/scripts/build_population_weighted_energy_totals.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build population-weighted energy totals. """ diff --git a/scripts/build_retro_cost.py b/scripts/build_retro_cost.py index 1d6e954a..cef2ef1f 100644 --- a/scripts/build_retro_cost.py +++ b/scripts/build_retro_cost.py @@ -1,5 +1,9 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Created on Fri Jan 22 10:36:39 2021. diff --git a/scripts/build_salt_cavern_potentials.py b/scripts/build_salt_cavern_potentials.py index e1703ef3..a496e4d2 100644 --- a/scripts/build_salt_cavern_potentials.py +++ b/scripts/build_salt_cavern_potentials.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build salt cavern potentials for hydrogen storage. diff --git a/scripts/build_sequestration_potentials.py b/scripts/build_sequestration_potentials.py index f3eec9ea..c75314d4 100644 --- a/scripts/build_sequestration_potentials.py +++ b/scripts/build_sequestration_potentials.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + import geopandas as gpd import pandas as pd diff --git a/scripts/build_shipping_demand.py b/scripts/build_shipping_demand.py index 0b28c6e2..c8c0dc96 100644 --- a/scripts/build_shipping_demand.py +++ b/scripts/build_shipping_demand.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT """ Build regional demand for international navigation based on outflow volume of ports. diff --git a/scripts/build_solar_thermal_profiles.py b/scripts/build_solar_thermal_profiles.py index cf77ad89..98b4b468 100644 --- a/scripts/build_solar_thermal_profiles.py +++ b/scripts/build_solar_thermal_profiles.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build solar thermal collector time series. """ diff --git a/scripts/build_temperature_profiles.py b/scripts/build_temperature_profiles.py index 28a8c8f0..c12fc7f2 100644 --- a/scripts/build_temperature_profiles.py +++ b/scripts/build_temperature_profiles.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build temperature profiles. """ diff --git a/scripts/build_transport_demand.py b/scripts/build_transport_demand.py index 9753cb10..b2d308e3 100644 --- a/scripts/build_transport_demand.py +++ b/scripts/build_transport_demand.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Build transport demand. """ diff --git a/scripts/cluster_gas_network.py b/scripts/cluster_gas_network.py index ce0c79a2..7ae1a9a2 100755 --- a/scripts/cluster_gas_network.py +++ b/scripts/cluster_gas_network.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + """ Cluster gas network. """ diff --git a/scripts/copy_config.py b/scripts/copy_config.py index 5794561b..792e9007 100644 --- a/scripts/copy_config.py +++ b/scripts/copy_config.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT from pathlib import Path from shutil import copy diff --git a/scripts/helper.py b/scripts/helper.py index f5e78f96..2c041d1c 100644 --- a/scripts/helper.py +++ b/scripts/helper.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + import contextlib import logging import os diff --git a/scripts/make_summary.py b/scripts/make_summary.py index 3b71d01c..1a076728 100644 --- a/scripts/make_summary.py +++ b/scripts/make_summary.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + import logging logger = logging.getLogger(__name__) diff --git a/scripts/plot_network.py b/scripts/plot_network.py index 0b327a56..02c93953 100644 --- a/scripts/plot_network.py +++ b/scripts/plot_network.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + import logging logger = logging.getLogger(__name__) diff --git a/scripts/plot_summary.py b/scripts/plot_summary.py index 7a28d12d..fe07066a 100644 --- a/scripts/plot_summary.py +++ b/scripts/plot_summary.py @@ -1,4 +1,8 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT + import logging logger = logging.getLogger(__name__) diff --git a/scripts/prepare_sector_network.py b/scripts/prepare_sector_network.py index 97036d24..22ed59a7 100644 --- a/scripts/prepare_sector_network.py +++ b/scripts/prepare_sector_network.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT import logging import os diff --git a/scripts/retrieve_gas_infrastructure_data.py b/scripts/retrieve_gas_infrastructure_data.py index bdb9509f..69aa1867 100644 --- a/scripts/retrieve_gas_infrastructure_data.py +++ b/scripts/retrieve_gas_infrastructure_data.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2021-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT """ Retrieve gas infrastructure data from https://zenodo.org/record/4767098/files/IGGIELGN.zip. diff --git a/scripts/retrieve_sector_databundle.py b/scripts/retrieve_sector_databundle.py index ef3e79e9..493b2c09 100644 --- a/scripts/retrieve_sector_databundle.py +++ b/scripts/retrieve_sector_databundle.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2021-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT """ Retrieve and extract sector data bundle. """ diff --git a/scripts/solve_sector_network.py b/scripts/solve_sector_network.py index 72eb7ac6..1a7ea352 100644 --- a/scripts/solve_sector_network.py +++ b/scripts/solve_sector_network.py @@ -1,4 +1,7 @@ # -*- coding: utf-8 -*- +# SPDX-FileCopyrightText: : 2020-2023 The PyPSA-Eur Authors +# +# SPDX-License-Identifier: MIT """ Solve network. """