-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make holiday features configurable (#569)
* add bidding zone config * format black * fix unit tests * disable dutch school holidays for other countries than NL * add license info * ran black * Formatting Signed-off-by: Clara De Smet <clara.de.smet@alliander.com> * Applied pydocstyle Signed-off-by: Clara De Smet <clara.de.smet@alliander.com> --------- Signed-off-by: Clara De Smet <clara.de.smet@alliander.com> Co-authored-by: Clara De Smet <clara.de.smet@alliander.com> Co-authored-by: lschilders <lars.schilders@alliander.com>
- Loading branch information
1 parent
4661304
commit 6272e5d
Showing
7 changed files
with
270 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
openstef/feature_engineering/bidding_zone_to_country_mapping.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# SPDX-FileCopyrightText: 2017-2023 Contributors to the OpenSTEF project <korte.termijn.prognoses@alliander.com> # noqa E501> | ||
# | ||
# SPDX-License-Identifier: MPL-2.0 | ||
BIDDING_ZONE_TO_COUNTRY_CODE_MAPPING = { | ||
"DE_50HZ": "DE", | ||
"AL": "AL", | ||
"DE_AMPRION": "DE", | ||
"AT": "AT", | ||
"BY": "BY", | ||
"BE": "BE", | ||
"BA": "BA", | ||
"BG": "BG", | ||
"CZ_DE_SK": "CZ", | ||
"HR": "HR", | ||
"CWE": "CWE", | ||
"CY": "CY", | ||
"CZ": "CZ", | ||
"DE_AT_LU": "DE", | ||
"DE_LU": "DE", | ||
"DK": "DK", | ||
"DK_1": "DK", | ||
"DK_1_NO_1": "DK", | ||
"DK_2": "DK", | ||
"DK_CA": "DK", | ||
"EE": "EE", | ||
"FI": "FI", | ||
"MK": "MK", | ||
"FR": "FR", | ||
"DE": "DE", | ||
"GR": "GR", | ||
"HU": "HU", | ||
"IS": "IS", | ||
"IE_SEM": "IE", | ||
"IE": "IE", | ||
"IT": "IT", | ||
"IT_SACO_AC": "IT", | ||
"IT_CALA": "IT", | ||
"IT_SACO_DC": "IT", | ||
"IT_BRNN": "IT", | ||
"IT_CNOR": "IT", | ||
"IT_CSUD": "IT", | ||
"IT_FOGN": "IT", | ||
"IT_GR": "IT", | ||
"IT_MACRO_NORTH": "IT", | ||
"IT_MACRO_SOUTH": "IT", | ||
"IT_MALTA": "IT", | ||
"IT_NORD": "IT", | ||
"IT_NORD_AT": "IT", | ||
"IT_NORD_CH": "IT", | ||
"IT_NORD_FR": "IT", | ||
"IT_NORD_SI": "IT", | ||
"IT_PRGP": "IT", | ||
"IT_ROSN": "IT", | ||
"IT_SARD": "IT", | ||
"IT_SICI": "IT", | ||
"IT_SUD": "IT", | ||
"RU_KGD": "RU", | ||
"LV": "LV", | ||
"LT": "LT", | ||
"LU": "LU", | ||
"LU_BZN": "LU", | ||
"MT": "MT", | ||
"ME": "ME", | ||
"GB": "GB", | ||
"GE": "GE", | ||
"GB_IFA": "GB", | ||
"GB_IFA2": "GB", | ||
"GB_ELECLINK": "GB", | ||
"UK": "UK", | ||
"NL": "NL", | ||
"NO_1": "NO", | ||
"NO_1A": "NO", | ||
"NO_2": "NO", | ||
"NO_2_NSL": "NO", | ||
"NO_2A": "NO", | ||
"NO_3": "NO", | ||
"NO_4": "NO", | ||
"NO_5": "NO", | ||
"NO": "NO", | ||
"PL_CZ": "PL", | ||
"PL": "PL", | ||
"PT": "PT", | ||
"MD": "MD", | ||
"RO": "RO", | ||
"RU": "RU", | ||
"SE_1": "SE", | ||
"SE_2": "SE", | ||
"SE_3": "SE", | ||
"SE_4": "SE", | ||
"RS": "RS", | ||
"SK": "SK", | ||
"SI": "SI", | ||
"GB_NIR": "GB", | ||
"ES": "ES", | ||
"SE": "SE", | ||
"CH": "CH", | ||
"DE_TENNET": "DE", | ||
"DE_TRANSNET": "DE", | ||
"TR": "TR", | ||
"UA": "UA", | ||
"UA_DOBTPP": "UA", | ||
"UA_BEI": "UA", | ||
"UA_IPS": "UA", | ||
"XK": "XK", | ||
"DE_AMP_LU": "DE", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.