Closed snorthman closed 1 year ago
NodeGraph.save_session(str) does not work, as it cannot serialize set objects.
NodeGraph.save_session(str)
set
Here is where a set occurs in my serialized session:
unserializable: set = serialized['graph']['accept_connection_types']['simulator.SimulatorNode']['in']['sim']['simulator.SimulationNode']['out']
Two easy solutions, rather than avoid sets in serialization:
stackoverflow SetEncoder
or
def serialize_json(obj): if isinstance(obj, set): return list(obj) return obj json.dumps(text, default=self.serialize_json)
addressed in v0.6.10 thanks for catching that bug 😺
v0.6.10
NodeGraph.save_session(str)
does not work, as it cannot serializeset
objects.Here is where a set occurs in my serialized session:
Two easy solutions, rather than avoid sets in serialization:
stackoverflow SetEncoder
or