You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python's json doesn't serialize set objects. I unfortunately can't submit a PR but the fix is relatively simple, in case anyone else encounters this issue.
line 553 of NodeGraphQt/base/model.py:
ifaccept_ptypenotinconnection_data:
connection_data[accept_ptype] = [accept_pname]
else:
# ensure data remains a set instead of list after json de-serializeconnection_data[accept_ptype] =list(set(connection_data[accept_ptype]) | {accept_pname})
The text was updated successfully, but these errors were encountered:
If you are worried about storing it like this, I would just serialize it as a tuple of arguments for add_{accept, reject}_port_type and replay them on deserialization.
Python's json doesn't serialize set objects. I unfortunately can't submit a PR but the fix is relatively simple, in case anyone else encounters this issue.
line 553 of NodeGraphQt/base/model.py:
The text was updated successfully, but these errors were encountered: