Skip to content

Conversation

@smaneroiriusrisk
Copy link
Collaborator

No description provided.

@@ -79,6 +88,7 @@ def _map_components(self):
mapping = _find_mapping(component.otm.name, mappings) or _find_mapping(component.shape_type, mappings)
if mapping:
self.__change_component_type(component, mapping)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we could simplify this by removing the def _add_component_name_as_tag and using this line:
component.otm.add_tag(mapping.get('name', mapping.get('type')))
It simplifies the code and makes it easier to read

@jmgarcia-iriusrisk jmgarcia-iriusrisk merged commit da1f11f into dev Apr 21, 2025
8 checks passed
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

Successfully merging this pull request may close these issues.

3 participants