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
Description of the bug: the following code results in an error
frommelusine.dataimportload_email_datafrommelusine.pipelineimportMelusinePipeline# Load an email datasetdf=load_email_data()
# Load a pipelinepipeline=MelusinePipeline.from_config("expeditor_pipeline")
# Run the pipelinedf=pipeline.transform(df)
This is the same code as here but where "demo_pipeline" has been replaced by "expeditor_pipeline".
KeyError Traceback (most recent call last)
Cell In[1], [line 8](vscode-notebook-cell:?execution_count=1&line=8)
[5](vscode-notebook-cell:?execution_count=1&line=5) df = load_email_data()
[7](vscode-notebook-cell:?execution_count=1&line=7) # Load a pipeline
----> [8](vscode-notebook-cell:?execution_count=1&line=8) pipeline = MelusinePipeline.from_config("expeditor_pipeline")
[10](vscode-notebook-cell:?execution_count=1&line=10) # Run the pipeline
[11](vscode-notebook-cell:?execution_count=1&line=11) df = pipeline.transform(df)
File d:\Users\cdiet\Program\miniconda3\envs\c3po\lib\site-packages\melusine\pipeline.py:197, in MelusinePipeline.from_config(cls, config_key, config_dict, **kwargs)
[195](file:///D:/Users/cdiet/Program/miniconda3/envs/c3po/lib/site-packages/melusine/pipeline.py:195) if config_key and not config_dict:
[196](file:///D:/Users/cdiet/Program/miniconda3/envs/c3po/lib/site-packages/melusine/pipeline.py:196) raw_config_dict = config[config_key]
--> [197](file:///D:/Users/cdiet/Program/miniconda3/envs/c3po/lib/site-packages/melusine/pipeline.py:197) config_dict = cls.parse_pipeline_config(raw_config_dict)
[199](file:///D:/Users/cdiet/Program/miniconda3/envs/c3po/lib/site-packages/melusine/pipeline.py:199) elif config_dict and not config_key:
[200](file:///D:/Users/cdiet/Program/miniconda3/envs/c3po/lib/site-packages/melusine/pipeline.py:200) config_dict = cls.parse_pipeline_config(config_dict)
File d:\Users\cdiet\Program\miniconda3\envs\c3po\lib\site-packages\melusine\pipeline.py:334, in MelusinePipeline.parse_pipeline_config(cls, config_dict)
[332](file:///D:/Users/cdiet/Program/miniconda3/envs/c3po/lib/site-packages/melusine/pipeline.py:332) _ = step.pop(cls.OBJ_KEY)
[333](file:///D:/Users/cdiet/Program/miniconda3/envs/c3po/lib/site-packages/melusine/pipeline.py:333) # Update step parameters
--> [334](file:///D:/Users/cdiet/Program/miniconda3/envs/c3po/lib/site-packages/melusine/pipeline.py:334) step[cls.OBJ_PARAMS] = config[config_key]
[336](file:///D:/Users/cdiet/Program/miniconda3/envs/c3po/lib/site-packages/melusine/pipeline.py:336) # Nested pipeline
[337](file:///D:/Users/cdiet/Program/miniconda3/envs/c3po/lib/site-packages/melusine/pipeline.py:337) if step[cls.OBJ_CLASS] == cls.__name__:
File d:\Users\cdiet\Program\miniconda3\envs\c3po\lib\collections\__init__.py:1106, in UserDict.__getitem__(self, key)
[1104](file:///D:/Users/cdiet/Program/miniconda3/envs/c3po/lib/collections/__init__.py:1104) if hasattr(self.__class__, "__missing__"):
[1105](file:///D:/Users/cdiet/Program/miniconda3/envs/c3po/lib/collections/__init__.py:1105) return self.__class__.__missing__(self, key)
-> [1106](file:///D:/Users/cdiet/Program/miniconda3/envs/c3po/lib/collections/__init__.py:1106) raise KeyError(key)
KeyError: 'expeditor_detector'
Debug Information
Please write the debug information inside ``` quotes in order to prevent text interpretation by the text editor.
Operating System: (run cat /etc/os-release in a terminal if running on a GNU/Linux distribution)
Microsoft Windows [Version 10.0.22631.4460]
Python version: (run python --version in the environment running Melusine)
Python 3.10.15
Melusine version: (run pip freeze |grep melusine in your Python environment)
melusine 3.1.0 pypi_0 pypi
Python packages: (run pip freeze in your Python environment)
Description of the bug: the following code results in an error
This is the same code as here but where "demo_pipeline" has been replaced by "expeditor_pipeline".
Debug Information
Please write the debug information inside
```
quotes in order to prevent text interpretation by the text editor.Operating System: (run
cat /etc/os-release
in a terminal if running on a GNU/Linux distribution)Python version: (run
python --version
in the environment running Melusine)Melusine version: (run
pip freeze |grep melusine
in your Python environment)Python packages: (run
pip freeze
in your Python environment)The text was updated successfully, but these errors were encountered: