Skip to content

feat(model): SIR model#101

Open
emptymalei wants to merge 11 commits intomainfrom
lm/sir
Open

feat(model): SIR model#101
emptymalei wants to merge 11 commits intomainfrom
lm/sir

Conversation

@emptymalei
Copy link
Copy Markdown
Member

@emptymalei emptymalei commented Jan 4, 2025

Resolves: #100

@emptymalei emptymalei changed the title feat: SIR model feat(model): SIR model Jan 4, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 4, 2025

PR Preview Action v1.4.7
🚀 Deployed preview to https://kausalflow.github.io/hamilflow/pr-preview/pr-101/
on branch gh-pages at 2026-03-27 19:55 UTC

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 4, 2025

Coverage

Coverage Report (9e1ffab, 3.10, macos-latest)
FileStmtsMissCoverMissing
hamilflow
   __init__.py00100% 
hamilflow/maths
   __init__.py20100% 
   trigonometrics.py1322 85%
hamilflow/models
   __init__.py00100% 
   brownian_motion.py4922 96%
   free_particle.py380100% 
   harmonic_oscillator.py1151010 91%
   harmonic_oscillator_chain.py4677 85%
   pendulum.py6022 97%
   sir.py460100% 
hamilflow/models/kepler_problem
   __init__.py20100% 
   dynamics.py6122 97%
   model.py1271111 91%
   numerics.py591111 81%
hamilflow/models/utils
   __init__.py00100% 
   typing.py40100% 
TOTAL6224792% 

Tests Skipped Failures Errors Time
2647 22 💤 0 ❌ 0 🔥 8.360s ⏱️

@emptymalei
Copy link
Copy Markdown
Member Author

@copilot fix the pre-commit issue

Copy link
Copy Markdown

Copilot AI commented Dec 20, 2025

@emptymalei I've opened a new pull request, #102, to work on those changes. Once the pull request is ready, I'll request review from you.

@emptymalei emptymalei marked this pull request as ready for review March 27, 2026 19:08
@emptymalei emptymalei requested review from cmp0xff and Copilot March 27, 2026 19:08
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an SIR (Susceptible–Infected–Recovered) epidemiological model to hamilflow, along with documentation, a tutorial, and CI/linting updates to support the new feature (resolves #100).

Changes:

  • Introduce hamilflow.models.sir.SIR with Pydantic-based system/IC models.
  • Add SIR documentation pages and a tutorial notebook/script, and wire them into MkDocs navigation.
  • Update lint config and bump GitHub Actions versions in workflows.

Reviewed changes

Copilot reviewed 11 out of 24 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
hamilflow/models/sir.py Implements the new SIR model and simulation API.
tests/test_models/test_sir.py Adds initial unit tests for SIR initialization and basic simulation outputs.
docs/tutorials/sir.py Adds a tutorial demonstrating SIR usage and plotting.
docs/references/models/sir.md Adds reference doc entry for the SIR module.
mkdocs.yml Adds SIR pages to nav and configures watch paths for docs/dev loop.
hamilflow/models/utils/typing.py Adjusts TypeTime typing definition used by the model call signature.
pyproject.toml Updates Ruff ignores (docstring rules, magic numbers in tests).
.github/workflows/tests.yaml Updates action versions and coverage-comment action pin.
.github/workflows/publish.yaml Updates action versions for publishing pipeline.
.github/workflows/docs-publish.yaml Updates action versions; modifies pre-commit job steps.
.github/workflows/docs-preview.yaml Updates action versions; modifies pre-commit job steps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread hamilflow/models/sir.py
Comment thread hamilflow/models/sir.py Outdated
Comment thread hamilflow/models/sir.py
Comment thread hamilflow/models/sir.py Outdated
Comment thread hamilflow/models/sir.py Outdated
Comment thread .github/workflows/docs-publish.yaml Outdated
Comment thread tests/test_models/test_sir.py
@emptymalei emptymalei enabled auto-merge (squash) March 27, 2026 21:51
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.

Epidemic models

3 participants