Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept transformer methods with no __name__ in Pipelines #177

Open
HugoPerrier opened this issue Aug 20, 2024 · 0 comments
Open

Accept transformer methods with no __name__ in Pipelines #177

HugoPerrier opened this issue Aug 20, 2024 · 0 comments

Comments

@HugoPerrier
Copy link
Contributor

Description of Problem:

melusine/base.py:238: in transform
logger.debug(f"Running transform for {type(self).__name__} ({method.__name__})")

If the name attribute is absent, the transform method execution fails.
This may happens for mocked methods.

Overview of the Solution:
Use a default name if the name attribute is not present

Definition of Done:
Transformers with unnamed methods can be run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant