Skip to content

Add license, tests and CI; fix calibration gate bugs - #1

Merged
ShivtejG236 merged 1 commit into
mainfrom
chore/hygiene
Nov 13, 2026
Merged

ShivtejG236 merged 1 commit into
mainfrom
chore/hygiene

Conversation

@ShivtejG236

@ShivtejG236 ShivtejG236 commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Step 1 (hygiene) of the professionalisation plan. No behaviour changes beyond the bug fixes listed.

Fixed

  • Calibration gate crash: picking "custom path" in the interactive prompt returned True instead of the state dict, so write_metadata crashed at the end of the run.
  • --calib-path precedence: it now overrides --calib-mode, as the README says.
  • Action 4 (compute params from an existing session) called menu_existing_session() without args and raised TypeError.

Added

  • LICENSE (MIT, matching the README badge).
  • 27 pytest tests on synthetic sessions: logger (fake serial port), trimmer (reboot split, framing errors, versioning), diagnostics, calibrator (bias, sphere fit, round trip, dry-run detection) and the calibration gate.
  • pyproject.toml with ruff and pytest config only; packaging comes with the navkit restructure.
  • CI: ruff, plus tests on Linux/macOS/Windows for Python 3.10 and 3.13.
  • CHANGELOG.md.

Changed

  • logger.log_session(out_path, port, timeout) replaces main_with_path, which rewrote sys.argv.
  • Docstrings use the current module names.
  • Ruff auto-fixes (unused imports, placeholder-less f-strings, trailing whitespace).

Not verified

  • Tests ran locally on Linux with Python 3.13 only; the macOS/Windows/3.10 legs first run in this PR's CI.
  • Nothing was run against real hardware.

Generated by Claude Code

- Add the MIT LICENSE the README badge already links to.
- Fix the interactive custom-path branch of enforce_calibration_check,
  which returned True instead of the state dict and crashed write_metadata.
- Make --calib-path override --calib-mode, as documented.
- Fix action 4, which called menu_existing_session() without args.
- Replace logger.main_with_path (sys.argv rewrite) with log_session().
- Rename stale module names in docstrings.
- Add pytest suite on synthetic sessions, ruff config and a CI workflow.
@ShivtejG236
ShivtejG236 merged commit bb780ec into main Nov 13, 2026
7 checks passed
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.

1 participant