Skip to content

MapLabelValue for identity mapping #6869

@wyli

Description

@wyli

Is your feature request related to a problem? Please describe.
the current label mapping transform raises an error when it's configured to do identity mapping:

if all(o == z for o, z in zip(orig_labels, target_labels)):
raise ValueError("orig_labels and target_labels are exactly the same, should be different to map.")

this logic is too restrictive when building flexible mapping pipelines, would be great to remove the checking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions