[MNT] Tags using enums #2235#2437
Conversation
Thank you for contributing to
|
MatthewMiddlehurst
left a comment
There was a problem hiding this comment.
This seems a lot clunkier that just strings at first glance, not sure I'm a fan currently.
There was a problem hiding this comment.
I would not do this in the clustering module, it should be more integrated with the other tags stuff in aeon/utils/tags.
|
Hi @MatthewMiddlehurst @chrisholder, I have made the required changes as commented. Since I have shifted the enum_tags.py to utils module it seems to have a circular import issue for the given test case. Test case: Error: I propose to keep it currently in the clustering module or maybe I would need some help to resolve the error. |
|
I think this issue requires some discussion before progressing, as its not obvious how best to do this and the changes, whilst under the hood, are fairly significant in terms of design |
|
I thought the closure above was an accident from the force push, but maybe not. Closing for now as theres no more discussion. |
Reference Issues/PRs
Contributes to #2235.
What does this implement/fix?
This PR replaces string values in
_tagswith their corresponding Enum values in the Clustering module. These changes improve maintainability and reduce errors by standardizing tag values across the module.Key points:
Enum.valuefor consistency.Does your contribution introduce a new dependency?
No
Any other comments?
This change represents a significant milestone in transitioning to Enum-based tags. Approval for this approach in the Clustering module will allow for escalation to other modules.
Some examples of usage:
PR checklist
For all contributions