Skip to content

Repository files navigation

lris2

LRIS2 Instrument Control Software

Structure

  • daemons/ – mKTL service daemons
  • gui/ – Graphical interfaces (slitmaskgui, demo)
  • scripts/ – AIT and utility scripts
  • src/driver/ – Hardware driver submodules
  • tests/ – Unit tests

Quick start

# 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]"

Submodules

This repo uses submodules under src/driver/:

SubmodulePathImport
coo-ethercatsrc/driver/coo_ethercatlris2.driver.coo_ethercat
lris2-csusrc/driver/lris2_csulris2.driver.lris2_csu
sunpowersrc/driver/sunpowerlris2.driver.sunpower

Pull the submodules

git submodule sync --recursive
git submodule update --init --recursive

Update to the latest on a tracked branch (e.g., main)

Only 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"

Testing

Tests mirror the src/ layout under tests/.

To run tests from the project root:

pytest

Contributing

  1. Create a feature branch.
  2. Include tests for new behavior.
  3. Run pytest before opening a PR.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages