Skip to content

Commit 9d22b45

Browse files
committed
Lint
1 parent f836c62 commit 9d22b45

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

explainer/explainer_signal.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def constraint_ctrb_to_fitness(self, log=None, constraints=None, index=-1):
390390
if index == -1:
391391
return f"Add an index for the constraint:\n {constraints}"
392392
contributor = constraints[index]
393-
ctrb_count = self.check_conformance(contributor, negative = False)
393+
ctrb_count = self.check_conformance(contributor, negative=False)
394394
len_log = self.get_total_cases()
395395
return ctrb_count / (len_log * len(constraints))
396396

@@ -478,9 +478,11 @@ def post_query_trace_in_dataset(self, trace, constraints):
478478
constraints = "".join(f"event_name MATCHES {constraints[0]}")
479479

480480
# Formulate the query
481-
query = f'SELECT ACTIVITY, COUNT(CASE_ID) FROM "defaultview-4" WHERE {constraints}'
482-
cache_key = hash(query) # Generate a cache key for the query
481+
query = (
482+
f'SELECT ACTIVITY, COUNT(CASE_ID) FROM "defaultview-4" WHERE {constraints}'
483+
)
483484

485+
cache_key = hash(query) # Generate a cache key for the query
484486
if cache_key in self.cache: # Check if the result is already in the cache
485487
result = self.cache[cache_key]
486488
else:
@@ -505,7 +507,7 @@ def get_all_conformant_traces(self):
505507
)
506508
else:
507509
constraints = "".join(f"event_name MATCHES {constraints[0]}")
508-
510+
509511
# Formulate the query
510512
query = (
511513
f'SELECT ACTIVITY, COUNT(CASE_ID) FROM "defaultview-4" WHERE {constraints}'

0 commit comments

Comments
 (0)