Skip to content

Kc/settings - #4

Merged
ChristianKarras merged 28 commits into
mainfrom
KC/Settings
Oct 17, 2026
Merged

ChristianKarras merged 28 commits into
mainfrom
KC/Settings

Conversation

@ChristianKarras

Copy link
Copy Markdown
Contributor

this should do the job for importing the config.yaml according to the agreements on dn62:

https://app.notion.com/p/DN-62-Optikit-Newswitch-Integration-Configuration-Schema-3e54e612c78a80598247eceef35e2579#3f64e612c78a802ab5d4f87291d63b09

Relevant package is in /backend/confg_io. Translation to managers is in adapters.py

ChristianKarras and others added 25 commits August 25, 2026 01:09
ChristianKarras and others added 3 commits October 17, 2026 21:18
Both config systems are kept:

- ImswitchConfig stays the BaseSettings model read from base_config.yaml
  and gains main's uc2_* transport fields (all with defaults). Keys
  starting with "_" are dropped, so the "_comment" entries of the JSON
  setups pass extra="forbid".
- main.py: NEWSWITCH_CONFIG values override single fields of
  base_config.yaml instead of replacing it.
- provide_managers: hardware runs on main's UC2 bus managers; the device
  configuration still feeds the virtual managers, stage limits and
  detectors. A uc2-rest controller in it sets the REST bus serial port
  and baud rate (flat fields < device config < nested uc2_rest).
- test_auth: config_file=None with main's UserStoreAuthenticator.
- pyproject.toml keeps the dependencies of both sides; uv.lock re-locked.

Conflicts:
	backend/main.py
	backend/newswitch/app.py
	backend/pyproject.toml
	backend/tests/test_auth.py
	backend/uv.lock

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Claude Code settings and notes are personal; they stay on disk but are
no longer versioned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two folders differing only in case collide on case-insensitive file
systems (macOS, Windows). The device configuration moves next to the
NEWSWITCH_CONFIG setups; base_config.yaml, .gitignore, tests and docs
point at the new folder. Files in configs/archiv/ are left unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ChristianKarras
ChristianKarras merged commit 89ef2ca into main Oct 17, 2026
3 of 12 checks passed
@ChristianKarras
ChristianKarras deleted the KC/Settings branch October 18, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants