Skip to content

Commit 6280a32

Browse files
committed
Some linting
1 parent 82ac98c commit 6280a32

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

causal_testing/data_collection/data_collector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ def collect_data(self, **kwargs) -> pd.DataFrame:
112112
executions.
113113
"""
114114
control_results_df = self.run_system_with_input_configuration(self.control_input_configuration)
115-
control_results_df.rename("control_{}".format, inplace=True)
115+
control_results_df.rename(lambda x: f"control_{x}", inplace=True)
116116
treatment_results_df = self.run_system_with_input_configuration(self.treatment_input_configuration)
117-
treatment_results_df.rename("treatment_{}".format, inplace=True)
117+
treatment_results_df.rename(lambda x: f"treatment_{x}", inplace=True)
118118
results_df = pd.concat([control_results_df, treatment_results_df], ignore_index=False)
119119
return results_df
120120

causal_testing/specification/metamorphic_relation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
This module contains the ShouldCause and ShouldNotCause metamorphic relations as
3+
defined in our ICST paper [https://eprints.whiterose.ac.uk/195317/].
4+
"""
5+
16
from dataclasses import dataclass
27
from abc import abstractmethod
38
from typing import Iterable

0 commit comments

Comments
 (0)