From aa246536573abd3c79f879d3c5ce21acc6f91d62 Mon Sep 17 00:00:00 2001 From: = <=> Date: Tue, 6 Feb 2024 17:32:04 +0100 Subject: [PATCH] now also encodesd sets --- python/polycube_encoder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/polycube_encoder.py b/python/polycube_encoder.py index ef390ef..d4f24e5 100644 --- a/python/polycube_encoder.py +++ b/python/polycube_encoder.py @@ -6,4 +6,6 @@ class PolyCubeEncdoder(JSONEncoder): def default(self, o: Any) -> Any: if isinstance(o, PolyCube): return list(o.cubes) + elif isinstance(o, set): + return list(o) return super().default(o)