Repository navigation
v0.42.0
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 stalemin_lenkey), addedAmpliconConfigTypedDict, annotated all pipeline entry points withcast(). mypy now catches invalid config key access at type-check time. Added input validation forexpected_product_range. - Orchestration thinning — Extracted ~60 lines of source tracker construction from
run_single_simulation_iteration()intobuild_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)