Zemeio
07/18/2023, 9:26 AM{%- for item in mylist %}
out.blind_predictions_{{ item-}}:
type: pandas.CSVDataSet
filepath: ${filepath1}_{{ item-}}.csv
layer: out
{% endfor %}
Globals:
mystli:
- item1
- item2
(For obvious reasons I removed the actual names from the text here)
Does anyone know how to accomplish this? (do a for here)Nok Lam Chan
07/18/2023, 10:26 AMmylist
can be interpolated with ${my_list}
but it cannot be used to form the for-loop.OmegaConfigLoader
using the Dataset Factory.
https://docs.kedro.org/en/latest/data/data_catalog.html#load-multiple-datasets-with-similar-configuration-using-dataset-factoriesZemeio
07/18/2023, 10:49 PMNok Lam Chan
07/18/2023, 10:51 PMZemeio
07/18/2023, 10:58 PMNok Lam Chan
07/18/2023, 11:21 PM{%- for item in mylist %}
to
{%- for item in ["item1", "item2"] %}
it should work.anyconfig
, to pass global variable into Jinja is not supported out of the box.Zemeio
07/19/2023, 12:03 AM