Skip to content

Accept transformer methods with no __name__ in Pipelines #177

@HugoPerrier

Description

@HugoPerrier

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions