Skip to content

v0.42.0

Choose a tag to compare

@berntpopp berntpopp released this 04 Apr 22:10
· 258 commits to main since this release

Lazy dispatch, typed configs, orchestration thinning

Addresses the 3 remaining codebase review findings (path from ~8 toward ~9/10).

Changes

  • Lazy backend dispatch — _get_simulator() replaces the eager _get_simulator_map(). Only the selected simulator backend is imported, avoiding Biopython loading for non-amplicon runs.
  • Typed config views — Fixed NanosimConfig (removed stale min_len key), added AmpliconConfig TypedDict, annotated all pipeline entry points with cast(). mypy now catches invalid config key access at type-check time. Added input validation for expected_product_range.
  • Orchestration thinning — Extracted ~60 lines of source tracker construction from run_single_simulation_iteration() into build_source_trackers() helper.

Quality

  • 1397 tests passing, 88% coverage
  • ruff clean, mypy 0 errors (89 source files)
  • New tests: lazy import dispatch (7), source tracker setup (3)