Skip to content

Commit 83584a7

Browse files
Merge branch 'main' into JSON_frontend_issues
2 parents 7e139f3 + 626e10e commit 83584a7

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ limit-inference-results=100
7575

7676
# List of plugins (as comma separated values of python module names) to load,
7777
# usually to register additional checkers.
78-
load-plugins=
78+
load-plugins=pylint.extensions.docparams
7979

8080
# Pickle collected data for later comparisons.
8181
persistent=yes

causal_testing/json_front/json_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def set_paths(self, json_path: str, dag_path: str, data_paths: str):
5656
Takes a path of the directory containing all scenario specific files and creates individual paths for each file
5757
:param json_path: string path representation to .json file containing test specifications
5858
:param dag_path: string path representation to the .dot file containing the Causal DAG
59-
:param data_path: string path representation to the data file
59+
:param data_paths: string path representation to the data files
6060
"""
6161
self.paths = JsonClassPaths(json_path=json_path, dag_path=dag_path, data_paths=data_paths)
6262

causal_testing/specification/causal_dag.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
import networkx as nx
1111

12+
from causal_testing.testing.base_test_case import BaseTestCase
13+
1214
from .scenario import Scenario
1315
from .variable import Output
1416

@@ -496,7 +498,7 @@ def depends_on_outputs(self, node: Node, scenario: Scenario) -> bool:
496498
return True
497499
return any((self.depends_on_outputs(n, scenario) for n in self.graph.predecessors(node)))
498500

499-
def identification(self, base_test_case):
501+
def identification(self, base_test_case: BaseTestCase):
500502
"""Identify and return the minimum adjustment set
501503
502504
:param base_test_case: A base test case instance containing the outcome_variable and the

causal_testing/testing/estimators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ def _run_logistic_regression(self, data) -> RegressionResultsWrapper:
158158
model = smf.logit(formula=self.formula, data=data).fit(disp=0)
159159
return model
160160

161-
def estimate(self, data: pd.DataFrame, adjustment_config=None) -> RegressionResultsWrapper:
161+
def estimate(self, data: pd.DataFrame, adjustment_config:dict = None) -> RegressionResultsWrapper:
162162
"""add terms to the dataframe and estimate the outcome from the data
163163
:param data: A pandas dataframe containing execution data from the system-under-test.
164-
164+
:param adjustment_config: Dictionary containing the adjustment configuration of the adjustment set
165165
"""
166166
if adjustment_config is None:
167167
adjustment_config = {}

0 commit comments

Comments
 (0)