Skip to content

Commit b03099a

Browse files
fix distributions bug
1 parent 6b3d6ad commit b03099a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

causal_testing/json_front/json_class.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,16 @@ def set_path(self, json_path: str, dag_path: str, data_path: str):
6666
self.dag_path = Path(dag_path)
6767
self.data_path = Path(data_path)
6868

69-
def set_variables(self, inputs: dict, outputs: dict, metas: dict, distributions: dict, populates: dict):
69+
def set_variables(self, inputs: dict, outputs: dict, metas: dict):
7070
""" Populate the Causal Variables
7171
:param inputs:
7272
:param outputs:
7373
:param metas:
74-
:param distributions:
75-
:param populates:
7674
"""
7775
self.inputs = [Input(i['name'], i['type'], i['distribution']) for i in
7876
inputs]
7977
self.outputs = [Output(i['name'], i['type']) for i in outputs]
80-
self.metas = [Meta(i['name'], i['type'], [i['populate']]) for i in
78+
self.metas = [Meta(i['name'], i['type'], i['populate']) for i in
8179
metas] if metas else list()
8280

8381
def setup(self):

examples/poisson/run_causal_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def add_modelling_assumptions(self, estimation_model: Estimator):
164164
args.data_path) # Set the path to the data.csv, dag.dot and causal_tests.json file
165165

166166
# Load the Causal Variables into the JsonUtility class ready to be used in the tests
167-
json_utility.set_variables(inputs, outputs, metas, distributions, populates)
167+
json_utility.set_variables(inputs, outputs, metas)
168168
json_utility.setup() # Sets up all the necessary parts of the json_class needed to execute tests
169169

170170
json_utility.execute_tests(effects, mutates, estimators, args.f)

0 commit comments

Comments
 (0)