Skip to content
New issue

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

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

Already on GitHub? # 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.

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

No branches or pull requests

1 participant