diff --git a/scripts/_helpers.py b/scripts/_helpers.py index d97144ba..a3b77c1c 100644 --- a/scripts/_helpers.py +++ b/scripts/_helpers.py @@ -785,4 +785,3 @@ def get_snapshots(snapshots, drop_leap_day=False, freq="h", **kwargs): time = time[~((time.month == 2) & (time.day == 29))] return time - diff --git a/scripts/build_cop_profiles/run.py b/scripts/build_cop_profiles/run.py index 401fdc18..b4ec3e43 100644 --- a/scripts/build_cop_profiles/run.py +++ b/scripts/build_cop_profiles/run.py @@ -134,9 +134,11 @@ def get_cop( source_type=heat_source, ).approximate_cop() + def get_country_from_node_name(node_name: str) -> str: return node_name[:2] + if __name__ == "__main__": if "snakemake" not in globals(): from _helpers import mock_snakemake