Skip to content

Commit 48b60d9

Browse files
committed
Removed duplicate dead code
1 parent 9bc7e25 commit 48b60d9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

causal_testing/json_front/json_class.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,6 @@ def setup(self, scenario: Scenario):
7878
def _create_abstract_test_case(self, test, mutates, effects):
7979
assert len(test["mutations"]) == 1
8080
treatment_var = next(self.scenario.variables[v] for v in test["mutations"])
81-
if not treatment_var.distribution:
82-
fitter = Fitter(self.data[treatment_var.name], distributions=get_common_distributions())
83-
fitter.fit()
84-
(dist, params) = list(fitter.get_best(method="sumsquare_error").items())[0]
85-
treatment_var.distribution = getattr(scipy.stats, dist)(**params)
86-
self._append_to_file(treatment_var.name + f" {dist}({params})", logging.INFO)
8781

8882
if not treatment_var.distribution:
8983
fitter = Fitter(self.data[treatment_var.name], distributions=get_common_distributions())

0 commit comments

Comments
 (0)