# Constructed data: 5 independent experiments; treatment lowers Bmax by 30% and leaves Kd unchanged (1 nM).
# 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", "condition", "ligand_nM", "well", "total", "nonspecific"])
d[["total", "nonspecific"]] = d[["total", "nonspecific"]].round(1); d.to_csv("binding.csv", index=False)
