Skip to content

Config refactor#38

Merged
edwenger merged 2 commits into
masterfrom
config-refactor
Dec 17, 2025
Merged

Config refactor#38
edwenger merged 2 commits into
masterfrom
config-refactor

Conversation

@edwenger

Copy link
Copy Markdown
Owner

No description provided.

edwenger and others added 2 commits December 16, 2025 16:08
Replace static class configuration with instance-based MalariaConfig to enable
thread-safe parallel simulations. Each IntrahostComponent now owns a shared_ptr
to its config, including its own RNG and SUID generator.

API changes:
- Add create_config(params) to create config instances from defaults
- Add config.update(params) for incremental parameter updates
- IntrahostComponent.create() now requires a config argument
- Remove static set_params()/update_params() methods
- Add config.yaml property for YAML representation

New files:
- MalariaConfig.h/cpp: Consolidated configuration class
- test_thread_safety.py: Tests for parallel simulation isolation
- MIGRATION.md: Migration guide from v0.0.4 to v0.1.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@edwenger edwenger merged commit 8549ec6 into master Dec 17, 2025
14 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