|
13 | 13 | from causal_testing.specification.scenario import Scenario
|
14 | 14 | from causal_testing.specification.variable import Input, Output, Meta
|
15 | 15 |
|
| 16 | +data_path = "data.csv" |
| 17 | +dag_path = "dag.dot" |
| 18 | +json_path = "causal_tests.json" |
| 19 | + |
| 20 | + |
16 | 21 | class WidthHeightEstimator(LinearRegressionEstimator):
|
17 | 22 | """
|
18 | 23 | Extension of LinearRegressionEstimator class to include scenario specific user code
|
@@ -104,8 +109,6 @@ def get_args() -> argparse.Namespace:
|
104 | 109 | description="A script for parsing json config files for the Causal Testing Framework")
|
105 | 110 | parser.add_argument("-f", help="if included, the script will stop if a test fails",
|
106 | 111 | action="store_true")
|
107 |
| - parser.add_argument("--directory_path", help="path to the json file containing the causal tests", |
108 |
| - default="causal_tests.json", type=Path) |
109 | 112 | return parser.parse_args()
|
110 | 113 |
|
111 | 114 |
|
@@ -188,7 +191,7 @@ def add_modelling_assumptions(self, estimation_model: Estimator):
|
188 | 191 | args = get_args()
|
189 | 192 |
|
190 | 193 | json_utility = MyJsonUtility() # Create an instance of the extended JsonUtility class
|
191 |
| - json_utility.set_path(args.directory_path) # Set the path to the data.csv, dag.dot and causal_tests.json file |
| 194 | + json_utility.set_path(json_path, dag_path, data_path) # Set the path to the data.csv, dag.dot and causal_tests.json file |
192 | 195 |
|
193 | 196 | # Load the Causal Variables into the JsonUtility class ready to be used in the tests
|
194 | 197 | json_utility.set_variables(inputs, outputs, metas, distributions, populates)
|
|
0 commit comments