Skip to content

Commit db5b8b8

Browse files
committed
pylint
1 parent 4d48785 commit db5b8b8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

causal_testing/surrogate/causal_surrogate_assisted.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ def execute(
106106
)
107107
test_result.relationship = (
108108
f"{surrogate_model.base_test_case.treatment_variable.name} -> "
109-
f"{surrogate_model.base_test_case.outcome_variable.name} expected {surrogate_model.expected_relationship}"
109+
f"{surrogate_model.base_test_case.outcome_variable.name} expected "
110+
f"{surrogate_model.expected_relationship}"
110111
)
111112
return test_result, i + 1, df
112113

causal_testing/testing/causal_test_result.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ def ci_valid(self) -> bool:
129129

130130
def summary(self):
131131
"""Summarise the causal test result as an intuitive sentence."""
132+
treatment_variable = self.estimator.base_test_case.treatment_variable
132133
print(
133-
f"The causal effect of changing {self.estimator.base_test_case.treatment_variable.name} = {self.estimator.control_value} to "
134-
f"{self.estimator.base_test_case.treatment_variable.name}' = {self.estimator.treatment_value} is {self.test_value.value}"
134+
f"The causal effect of changing {treatment_variable.name} = {self.estimator.control_value} to "
135+
f"{treatment_variable.name}' = {self.estimator.treatment_value} is {self.test_value.value}"
135136
f"(95% confidence intervals: {self.confidence_intervals})."
136137
)

0 commit comments

Comments
 (0)