# Reproduce sessions 329–338

Work in the notebook checkout’s `dist/files` directory with the published source images, earlier data, and the files linked in these reports. These scripts use Python 3 with Pillow, NumPy and SciPy; the last control uses a C++17 compiler. Start with a new output directory. The synthetic control reads no manuscript data.

```sh
mkdir replay338
python -B margins_329.py . replay338/margins_329_results.json.gz
python -B fit_330.py . replay338/fit_330_results.json.gz
python -B nextcell_331.py . replay338/nextcell_331_results.json.gz
python -B alignment_332.py . replay338
python -B reflow_333.py . replay338/reflow_333_results.json.gz
python -B span_witness_333.py . replay338/span_witness_333.svg
python -B balance_334.py . replay338/balance_334_results.json.gz
python -B digest_wrap_335.py . replay338/digest_wrap_335_results.json.gz
python -B columns_336.py . replay338/columns_336_results.json.gz
python -B column_variants_337.py . replay338/column_variants_337_results.json.gz
c++ -O3 -std=c++17 column_controls_338.cpp -o replay338/controls
replay338/controls > replay338/column_controls_338_results.json
```

Compare each output to its published namesake. The alignment script writes both the measurements and the span figure. The data files preserve the source identifiers, parameters, denominators and sensitivity checks used in the reports.
