@@ -135,7 +135,7 @@ def populate_num_shapes_unit(data):
135
135
modelling_inputs = (
136
136
[Input (i ["name" ], i ["datatype" ], i ["distribution" ]) for i in inputs ]
137
137
+ [Output (i ["name" ], i ["datatype" ]) for i in outputs ]
138
- + [Meta (i ["name" ], i ["datatype" ], [ i ["populate" ] ]) for i in metas ]
138
+ + [Meta (i ["name" ], i ["datatype" ], i ["populate" ]) for i in metas ]
139
139
if metas
140
140
else list ()
141
141
)
@@ -174,8 +174,7 @@ def test_run_causal_tests():
174
174
) # Set the path to the data.csv, dag.dot and causal_tests.json file
175
175
176
176
# Load the Causal Variables into the JsonUtility class ready to be used in the tests
177
- json_utility .set_variables (inputs , outputs , metas )
178
- json_utility .setup () # Sets up all the necessary parts of the json_class needed to execute tests
177
+ json_utility .setup (scenario = modelling_scenario ) # Sets up all the necessary parts of the json_class needed to execute tests
179
178
180
179
json_utility .generate_tests (effects , mutates , estimators , False )
181
180
@@ -188,7 +187,6 @@ def test_run_causal_tests():
188
187
) # Set the path to the data.csv, dag.dot and causal_tests.json file
189
188
190
189
# Load the Causal Variables into the JsonUtility class ready to be used in the tests
191
- json_utility .set_variables (inputs , outputs , metas )
192
- json_utility .setup () # Sets up all the necessary parts of the json_class needed to execute tests
190
+ json_utility .setup (scenario = modelling_scenario ) # Sets up all the necessary parts of the json_class needed to execute tests
193
191
194
192
json_utility .generate_tests (effects , mutates , estimators , args .f )
0 commit comments