Skip to content

Commit 4782ace

Browse files
change data_collector.py logger string format (linting)
1 parent d8c21dc commit 4782ace

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

causal_testing/data_collection/data_collector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def filter_valid_data(self, data: pd.DataFrame, check_pos: bool = True) -> pd.Da
7373
size_diff = len(data) - len(satisfying_data)
7474
if size_diff > 0:
7575
logger.warning(
76-
f"Discarded {size_diff}/{len(data)} values due to constraint violations.\n" f"For example{unsat_core}"
76+
"Discarded %d/%d values due to constraint violations.\n" % (size_diff, len(data)) +
77+
"For example %s" % unsat_core
7778
)
7879
return satisfying_data
7980

0 commit comments

Comments
 (0)