# Constructed data: 5 independent experiments. True surviving fractions: A 0.6, B 0.5, A + B 0.30, which is exactly the
# Bliss expectation (0.6 x 0.5): the drugs act independently and there is no synergy. Python 3.13, NumPy, pandas.
# Seed 1, the first one tried.
import numpy as np, pandas as pd
from model import experiment
rng = np.random.default_rng(1)
rows = [(e, *r) for e in range(1, 6) for r in experiment(rng)]
d = pd.DataFrame(rows, columns=["experiment", "treatment", "well", "signal"])
d["signal"] = d.signal.round(1)
d.to_csv("viability.csv", index=False)
