Skip to content

Commit 001fedc

Browse files
author
Robert (Bob) Turner
committed
re-enable unnecessary-pass
1 parent a69824b commit 001fedc

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

.pylintrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ disable=raw-checker-failed,
152152
useless-suppression,
153153
deprecated-pragma,
154154
use-symbolic-message-instead,
155-
invalid-name,
156-
unnecessary-pass
155+
invalid-name
157156

158157
# Enable the message, report, category or checker with the given id(s). You can
159158
# either give multiple identifier separated by comma (,) or put this option

causal_testing/data_collection/data_collector.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def collect_data(self, **kwargs) -> pd.DataFrame:
2121
Populate the dataframe with execution data.
2222
:return df: A pandas dataframe containing execution data for the system-under-test.
2323
"""
24-
pass
2524

2625
def filter_valid_data(self, data: pd.DataFrame, check_pos: bool = True) -> pd.DataFrame:
2726
"""Check is execution data is valid for the scenario-under-test.
@@ -119,8 +118,6 @@ def run_system_with_input_configuration(self, input_configuration: dict) -> pd.D
119118
:return: A pandas dataframe containing execution data obtained by executing the system-under-test with the
120119
specified input configuration.
121120
"""
122-
pass
123-
124121

125122
class ObservationalDataCollector(DataCollector):
126123
"""A data collector that extracts data that is relevant to the specified scenario from a csv of execution data."""

causal_testing/testing/estimators.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ def add_modelling_assumptions(self):
6464
Add modelling assumptions to the estimator. This is a list of strings which list the modelling assumptions that
6565
must hold if the resulting causal inference is to be considered valid.
6666
"""
67-
pass
6867

6968
@abstractmethod
7069
def estimate_ate(self) -> float:
@@ -73,15 +72,13 @@ def estimate_ate(self) -> float:
7372
in the linear regression equation.
7473
:return: The intercept and coefficient of the linear regression equation
7574
"""
76-
pass
7775

7876
def compute_confidence_intervals(self) -> list[float, float]:
7977
"""
8078
Estimate the 95% Wald confidence intervals for the effect of changing the treatment from control values to
8179
treatment values on the outcome.
8280
:return: 95% Wald confidence intervals.
8381
"""
84-
pass
8582

8683

8784
class LogisticRegressionEstimator(Estimator):

0 commit comments

Comments
 (0)