@@ -149,15 +149,6 @@ def populate_num_shapes_unit(data):
149
149
}
150
150
151
151
152
- class MyJsonUtility (JsonUtility ):
153
- """Extension of JsonUtility class to add modelling assumptions to the estimator instance"""
154
-
155
- def add_modelling_assumptions (self , estimation_model : Estimator ):
156
- # Add squared intensity term as a modelling assumption if intensity is the treatment of the test
157
- if "intensity" in estimation_model .treatment [0 ]:
158
- estimation_model .intercept = 0
159
-
160
-
161
152
def test_run_causal_tests ():
162
153
ROOT = os .path .realpath (os .path .dirname (__file__ ))
163
154
@@ -166,7 +157,7 @@ def test_run_causal_tests():
166
157
dag_path = f"{ ROOT } /dag.dot"
167
158
data_path = f"{ ROOT } /data.csv"
168
159
169
- json_utility = MyJsonUtility (log_path ) # Create an instance of the extended JsonUtility class
160
+ json_utility = JsonUtility (log_path ) # Create an instance of the extended JsonUtility class
170
161
json_utility .set_paths (
171
162
json_path , dag_path , [data_path ]
172
163
) # Set the path to the data.csv, dag.dot and causal_tests.json file
@@ -178,8 +169,8 @@ def test_run_causal_tests():
178
169
179
170
180
171
if __name__ == "__main__" :
181
- args = MyJsonUtility .get_args ()
182
- json_utility = MyJsonUtility (args .log_path ) # Create an instance of the extended JsonUtility class
172
+ args = JsonUtility .get_args ()
173
+ json_utility = JsonUtility (args .log_path ) # Create an instance of the extended JsonUtility class
183
174
json_utility .set_paths (
184
175
args .json_path , args .dag_path , args .data_path
185
176
) # Set the path to the data.csv, dag.dot and causal_tests.json file
0 commit comments