From bf7cced21a812c222fdddfba2947b02c4374555c Mon Sep 17 00:00:00 2001 From: Pabloo22 Date: Mon, 27 May 2024 17:52:00 +0200 Subject: [PATCH] [BugFix] Refactor composite feature observer to use feature type values in output to avoid differences between Python versions --- .../dispatching/feature_observers/composite_feature_observer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/job_shop_lib/dispatching/feature_observers/composite_feature_observer.py b/job_shop_lib/dispatching/feature_observers/composite_feature_observer.py index 3a9616e..02f0afb 100644 --- a/job_shop_lib/dispatching/feature_observers/composite_feature_observer.py +++ b/job_shop_lib/dispatching/feature_observers/composite_feature_observer.py @@ -82,6 +82,6 @@ def __str__(self): out = [f"{self.__class__.__name__}:"] out.append("-" * (len(out[0]) - 1)) for feature_type, dataframe in self.features_as_dataframe.items(): - out.append(f"{feature_type}:") + out.append(f"{feature_type.value}:") out.append(dataframe.to_string()) return "\n".join(out)