From 073dc0fb5a9554402aa8d68e02b444c7710effc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Miguel=20Horcas?= Date: Thu, 1 Aug 2024 18:11:27 +0200 Subject: [PATCH] Fix: Unique features metric returns JSON serializable object --- flamapy/metamodels/pysat_metamodel/operations/pysat_metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flamapy/metamodels/pysat_metamodel/operations/pysat_metrics.py b/flamapy/metamodels/pysat_metamodel/operations/pysat_metrics.py index 242b069..5d5cb1c 100644 --- a/flamapy/metamodels/pysat_metamodel/operations/pysat_metrics.py +++ b/flamapy/metamodels/pysat_metamodel/operations/pysat_metrics.py @@ -130,7 +130,7 @@ def unique_features(self) -> dict[str, Any]: seen_once.add(feature) # Step 3: Find features that are in seen_once but not in seen_multiple - _unique_features = seen_once - seen_multiple + _unique_features = list(seen_once - seen_multiple) result = self.construct_result(name=name, doc=self.unique_features.__doc__,