Repository navigation
Kc/settings - #4
Merged
Merged
Conversation
ChristianKarras
force-pushed
the
KC/Settings
branch
from
October 17, 2026 19:00
c83da2e to
941b4d6
Compare
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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