Skip to content

Commit ba8d786

Browse files
Reduce long lines
1 parent eba37f6 commit ba8d786

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

causal_testing/generation/abstract_causal_test_case.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,16 @@ def generate_concrete_tests(
188188
for var in control_configs.columns
189189
}
190190
# Putting treatment and control values in messes it up because the two are not independent...
191-
# This is potentially problematic as constraints might mean we don't get good coverage if we use control values alone
192-
# We might then need to carefully craft our _control value_ generating distributions so that we can get good coverage
191+
# This is potentially problematic as constraints might mean we don't get good coverage if we use control
192+
# values alone
193+
# We might then need to carefully craft our _control value_ generating distributions so that we can get
194+
# good coverage
193195
# without the generated treatment values violating any constraints.
194196

195197
# treatment_configs = pd.DataFrame([test.treatment_input_configuration for test in concrete_tests])
196198
# both_configs = pd.concat([control_configs, treatment_configs])
197-
# ks_stats = {var: stats.kstest(both_configs[var], var.distribution.cdf).statistic for var in both_configs.columns}
199+
# ks_stats = {var: stats.kstest(both_configs[var], var.distribution.cdf).statistic for var in
200+
# both_configs.columns}
198201
effect_modifier_configs = pd.DataFrame([test.effect_modifier_configuration for test in concrete_tests])
199202
ks_stats.update(
200203
{

0 commit comments

Comments
 (0)