You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A mapping from pipeline names to ``Pipeline`` objects.
"""
pipelines=find_pipelines()
pipelines["__default__"] =sum(pipelines.values())
returnpipelines
Apart from #2526, this is fine and works well. The magic is in kedro.framework.project.find_pipelines, which scans different directories searching for a create_pipeline function:
and since their pipeline creation functions were not named create_pipeline but something else, this completely broke the automagic find_pipelines for them.
The text was updated successfully, but these errors were encountered:
The current code for
pipeline_registry.py
in the default template is as follows:kedro/kedro/templates/project/{{ cookiecutter.repo_name }}/src/{{ cookiecutter.python_package }}/pipeline_registry.py
Lines 1 to 16 in df9f174
Apart from #2526, this is fine and works well. The magic is in
kedro.framework.project.find_pipelines
, which scans different directories searching for acreate_pipeline
function:kedro/kedro/framework/project/__init__.py
Line 292 in df9f174
This is so magical though, that the moment users want to manually register pipelines, they go crazy. For example, this is a user that was trying something like
kedro run --pipeline=data_science+evaluation
, which is a beautiful syntax by the way https://linen-slack.kedro.org/t/15697047/i-have-a-quick-question-on-running-selected-pipelines-only-i#b93fe172-d54f-4f51-a8a6-b85f9dbcec32to which I replied, how would I subtract a pipeline?
in the end I did this:
but @noklam suggested this instead
This week I saw a user do something similar, but they renamed the functions instead:
https://github.com/pablovdcf/TFM_HADO_Cares/blob/28d5a024b915169a039a5a84996b9ee11ee1f3ee/hado/src/hado/pipeline_registry.py#L5-L7
and since their pipeline creation functions were not named
create_pipeline
but something else, this completely broke the automagicfind_pipelines
for them.The text was updated successfully, but these errors were encountered: