Skip to content

Conversation

raska-s
Copy link

@raska-s raska-s commented Jan 17, 2025

I encountered an issue when converting STEP files to graphs in stepfiles where there is some whitespace after the key/node, example:

/utils.py", line 76, in replace_nodes
    node.parameters[i1] = fast_dict_search[par1]
                          ~~~~~~~~~~~~~~~~^^^^^^
KeyError: '#1149    '

This fixes the issue by stripping the whitespace.

Please consider integrating this fix into the main branch.

Thanks,
Raska S

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.

1 participant