For some reason, parameterize_sources is not produ...
# hamilton-help
v
For some reason, parameterize_sources is not producing any nodes / functions, even though I'm following the docs exactly. Is there a BUG in v.1.75.1 ? This is the code I'm using, and none of the outputs appear in the dag chart:
Copy code
@parameterize_sources(
    clean_important_urls_multiline = dict(multiline_text = 'raw_important_urls_multiline'),
    clean_exclude_urls_multiline = dict(multiline_text = "raw_exclude_urls_multiline"),
    clean_exclude_url_regexes_multiline = dict(multiline_text = "raw_exclude_url_regexes_multiline"),
    clean_important_queries_multiline = dict(multiline_text = "raw_important_queries_multiline")
)
def _multiline_cleaning(multiline_text: str) -> str:
    ...
    return cleaned
s
I think it’s because of the
_
prefix to
_multiline_cleaning
v
whew, good catch. Now it works. I had used the function for pipe, before. Does the leading underscore have special meaning, or why would this fail?
s
yep - so Hamilton ignores functions with
_
prefix — that way you can have other “helper” functions in your modules.
👍 1
v
nice, I've learned something again 🙂
🙌 1