Open-Source AO Stack & Reproduction Guide

Complete source repository provenance, CMake build instructions, and automated CLI commands to reproduce all simulations and technical reports. Inspect the baseline entrance-pupil physics in the Default Turbulence & Perturbation Model and browse every optical bench key, FPS parameter, and CLI flag in the Simulator Options Reference.

Open-Source GitHub Repositories

All source repositories build into one relocatable prefix (milk/_install/milk-<version>) via ./scripts/build-all.sh:

RepositoryBranchCommitRole in Simulation Stack
cacao-workmain62a9689Integration workspace, AO3k+SCExAO bench & runner, 128-poke bias calibration, pytest suite, and static web report builder
cacaosimmain8aa5dfbGPU-fused & modular polychromatic AO hardware simulator, multi-rate sub-stepping, TUI, and report generator
cacaofeat/bash-engined496ab0Compute and Control for Adaptive Optics (native acquireWFSim.c dynamic WFSbias compensation, mlat, Hadamard RM, SVD CM, modalfilter)
milkfeat/bash-enginea3bfb83Core FPS shared-memory engine, milk-script orchestrator, streamFITSlog telemetry, and milk-perf-report
milk-mltoolsmain1c08e4eC telemetry indexing & sync, @calc JIT extensions, AO loop optimizer, and polychromatic PSF reconstruction
AtmosphericTurbulenceSimulfeat/bash-engine0eb76dfMulti-layer Maunakea frozen-flow & boiling turbulence generator (milkatmturb)
OpticsMaterialsfeat/bash-engine0de3897Optical material dispersion & air refractive-index library for milk
WFpropagatefeat/bash-engined65183dFresnel & angular-spectrum wavefront propagation library for milk

End-to-End Reproduction Guide (CLI & AI Agent Ready)

# 1. Clone all open-source stack repositories into ~/src
mkdir -p ~/src && cd ~/src
git clone -b feat/bash-engine https://github.com/milk-org/milk.git milk && git -C milk checkout -q a3bfb83bf62107ceca3432370073d790e6042291
git -C milk submodule update --init src/engine/ImageStreamIO
git clone -b feat/bash-engine https://github.com/cacao-org/cacao.git cacao && git -C cacao checkout -q d496ab0fd8bbbc3b6b80f966e9d57801719386b1
git clone -b main https://github.com/milk-org/milk-mltools.git milk-mltools && git -C milk-mltools checkout -q 1c08e4ed7c34fd0d4150d8ed11030b1e1a10b54f
git clone -b feat/bash-engine https://github.com/milk-org/OpticsMaterials.git OpticsMaterials && git -C OpticsMaterials checkout -q 0de3897d06cbd3e628bc13ccf41b32a183f4e71d
git clone -b feat/bash-engine https://github.com/milk-org/WFpropagate.git WFpropagate && git -C WFpropagate checkout -q d65183d1281abee57010e1556425328b1f6a0490
git clone -b feat/bash-engine https://github.com/oguyon/AtmosphericTurbulenceSimul.git AtmosphericTurbulenceSimul && git -C AtmosphericTurbulenceSimul checkout -q 0eb76dfd1f420b5e1e9aaf3a497097cf5ab054b8
git clone -b main https://github.com/cacao-org/cacaosim.git cacaosim && git -C cacaosim checkout -q 8aa5dfb876777a167541e8e9881da09f4f856612
git clone -b main https://github.com/cacao-org/cacao-work.git cacao-work && git -C cacao-work checkout -q 62a968978a093c17887e34e444917bc67e1a173a

# 2. Configure, compile, install into milk/_install, and run isolated sanity tests
cd ~/src/cacao-work
source env.sh
./scripts/build-all.sh
"$PYTHON_BIN" -m pytest -v tests/test_00_stack_sanity.py tests/test_05_ao_web_report.py

# 3. Run closed-loop Subaru AO3k + SCExAO simulations, telemetry & reports
./scripts/run-ao3k-scexao.sh --seeing 0.80 --phys-time 30.0 --oversample 4 --bench-mode fused --gain1 0.45 --gain2 0.35 --mult1 0.99 --mult2 0.98 --mgain-alpha 0.75 --mgain-floor 0.02 --mgain-tt 1.05 --svdlim1 0.0001 --svdlim2 0.002 --no-lowfs --predictive --pf-mix 0.82 --pf-order 24 --save-rm _work/ao3k_scexao_rm --outdir _work/ao3k_scexao_2stage_opt_ttm1hz --save-telemetry standard
./scripts/run-ao3k-scexao.sh --seeing 0.80 --phys-time 30.0 --oversample 4 --bench-mode fused --gain1 0.45 --gain2 0.35 --mult1 0.99 --mult2 0.98 --mgain-alpha 0.75 --mgain-floor 0.02 --mgain-tt 1.05 --svdlim1 0.0001 --svdlim2 0.002 --no-lowfs --predictive --pf-mix 0.82 --pf-order 24 --save-rm _work/ao3k_scexao_rm --outdir _work/ao3k_stage1 --save-telemetry standard

# 3b. Compile comparative Predictive Control Report
${PYTHON_BIN} ./scripts/build-predictive-control-report.py

# 3c. Compile 2-WFS + 1-DM Telemetry Calibration Study Report
${PYTHON_BIN} ./scripts/build-calib-2wfs1dm-report.py

# 3d. Compile ALPAO 64x64 DM Spatiotemporal Dynamics Report & 20 kHz Video
${PYTHON_BIN} ./scripts/build-dm-dynamics-report.py

# 3e. Compile Atmospheric Chromaticity & Dual-Wavelength Extrapolation Report
${PYTHON_BIN} ./scripts/build-chromaticity-report.py

# 4. Stage static HTML website locally under _work/_web_site/public/
./scripts/publish-ao-report.sh --build-only _work/calib_2wfs1dm_report
./scripts/publish-ao-report.sh --build-only _work/chromatic_dispersion_report
./scripts/publish-ao-report.sh --build-only _work/chromaticity_report
./scripts/publish-ao-report.sh --build-only _work/control_architecture_synthesis
./scripts/publish-ao-report.sh --build-only _work/control_implementation_plan
./scripts/publish-ao-report.sh --build-only _work/dm64_dyn_rm_calib
./scripts/publish-ao-report.sh --build-only _work/dm_dynamics_report
./scripts/publish-ao-report.sh --build-only _work/dm_preshaper_demo
./scripts/publish-ao-report.sh --build-only _work/framerate_report
./scripts/publish-ao-report.sh --build-only _work/predictive_control_report
./scripts/publish-ao-report.sh --build-only _work/unmod_pyrwfs_bias_report
./scripts/publish-ao-report.sh --build-only _work/ao3k_scexao_2stage_opt_ttm1hz
./scripts/publish-ao-report.sh --build-only _work/ao3k_stage1

Adding New Research Topics & Reports

The entire navigation hierarchy, topic hubs, and pull-down menus are driven declaratively by scripts/report_site/taxonomy.json and each report's study_meta.json: