Spaces:
Running
Running
Andrea Maldonado
commited on
Commit
·
6db68fb
1
Parent(s):
1d1b662
Hot fix for column name change
Browse files- gedi/generator.py +4 -0
gedi/generator.py
CHANGED
@@ -154,6 +154,10 @@ class GenerateEventLogs():
|
|
154 |
write_xes(log_config['log'], save_path)
|
155 |
print("SUCCESS: Saved generated event log in", save_path)
|
156 |
features_to_dump = log_config['metafeatures']
|
|
|
|
|
|
|
|
|
157 |
features_to_dump['log'] = identifier.replace('genEL', '')
|
158 |
dump_features_json(features_to_dump, self.output_path, identifier, objectives=self.objectives)
|
159 |
return log_config
|
|
|
154 |
write_xes(log_config['log'], save_path)
|
155 |
print("SUCCESS: Saved generated event log in", save_path)
|
156 |
features_to_dump = log_config['metafeatures']
|
157 |
+
|
158 |
+
#TODO: Replace hotfix
|
159 |
+
if features_to_dump.get('ratio_unique_traces_per_trace'):#HOTFIX
|
160 |
+
features_to_dump['ratio_variants_per_number_of_traces']=features_to_dump.pop('ratio_unique_traces_per_trace')
|
161 |
features_to_dump['log'] = identifier.replace('genEL', '')
|
162 |
dump_features_json(features_to_dump, self.output_path, identifier, objectives=self.objectives)
|
163 |
return log_config
|