Skip to content
Snippets Groups Projects
Commit 86c18cde authored by I. Nüske's avatar I. Nüske
Browse files

DOC: Make the Custom Transformers example executable without changes, fix indentation

parent ce3844f2
No related branches found
No related tags found
2 merge requests!217TST: Make NamedTemporaryFiles Windows-compatible,!213DOC: added documentaiton on how to use custom transformers
Pipeline #59990 passed
......@@ -95,10 +95,10 @@ following code:
# are contained in `in_parameters`. We need to make sure they are set or
# set their defaults otherwise:
if "in_letter" not in in_parameters:
if "in_letters" not in in_parameters:
raise RuntimeError("Parameter `in_letters` missing.")
if "out_letter" not in in_parameters:
if "out_letters" not in in_parameters:
raise RuntimeError("Parameter `out_letters` missing.")
l_in = in_parameters["in_letters"]
......@@ -127,7 +127,7 @@ In the cfood the transfomer needs to be registered:
crawler-version: 0.10.2
macros:
---
Converters: # put custom converters here
#Converters: # put custom converters here
Transformers:
replace_letters: # This name will be made available in the cfood
function: replace_letters
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment