Dries Hugaerts
08/16/2025, 10:38 AMCOUNTRY_CODES = ['BE', 'NL', 'FR', 'DE', ...]
load_parameterization = { f"{cc.lower()}_load": dict(cc=value(cc)) for cc in COUNTRY_CODES }
@parameterize(**load_parameterization)
def country_load(cc: str) -> pd.Series:
# Some specific way of getting the countries load
return get_load(cc)
without resorting to this:
@tag(cc='BE')
def be_load():
return get_load('BE')
@tag(cc='NL')
def nl_load():
return get_load('NL')
...
Is something like this already possible?
I appreciate the help.
Cheers DriesStefan Krawczyk
08/19/2025, 6:36 PMCOUNTRY_CODES = ['BE', 'NL', 'FR', 'DE', ...]
load_parameterization = { f"{cc.lower()}_load": dict(cc=value(cc)) for cc in COUNTRY_CODES }
@parameterize(**load_parameterization)
def country_load(cc: str) -> pd.Series:
# Some specific way of getting the countries load
return get_load(cc)seems like it should work? What are you encountering here?
Dries Hugaerts
08/20/2025, 2:54 PMStefan Krawczyk
08/20/2025, 5:27 PMDries Hugaerts
08/20/2025, 9:07 PM