Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed issue with whitespace in node parsing for replace_nodes #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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