3D_STEP_Classification icon indicating copy to clipboard operation
3D_STEP_Classification copied to clipboard

fixed issue with whitespace in node parsing for replace_nodes

Open raska-s opened this issue 1 year ago • 0 comments

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

raska-s avatar Jan 17 '25 14:01 raska-s