LRIS2 Instrument Control Software
daemons/– mKTL service daemonsgui/– Graphical interfaces (slitmaskgui,demo)scripts/– AIT and utility scriptssrc/driver/– Hardware driver submodulestests/– Unit tests
# 1) Clone
git clone <repo-url>
cd lris2
# 2) Make sure submodule URLs are in sync
git submodule sync --recursive
git submodule update --init --recursive
# 3) Install the package for development
pip install -U pip
pip install -e ".[dev]"This repo uses submodules under src/driver/:
| Submodule | Path | Import |
|---|---|---|
| coo-ethercat | src/driver/coo_ethercat |
lris2.driver.coo_ethercat |
| lris2-csu | src/driver/lris2_csu |
lris2.driver.lris2_csu |
| sunpower | src/driver/sunpower |
lris2.driver.sunpower |
git submodule sync --recursive
git submodule update --init --recursiveOnly do this if you intend to move submodule pointers and commit them.
# One-off refresh to submodules' tracked branches
git submodule update --remote --merge --recursive
# Record updated pointers in parent repo
git add .gitmodules .
git commit -m "Update submodules to latest on main"Tests mirror the src/ layout under tests/.
To run tests from the project root:
pytest- Create a feature branch.
- Include tests for new behavior.
- Run
pytestbefore opening a PR.