Skip to content

Commit efaa81a

Browse files
authored
Merge pull request #4 from DataForScience/main
Main
2 parents 85eea90 + e07b3cc commit efaa81a

25 files changed

+1654
-303
lines changed

docs/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# You can set these variables from the command line, and also
55
# from the environment for the first two.
66
SPHINXOPTS ?=
7-
SPHINXBUILD ?= sphinx-build
8-
SOURCEDIR = .
9-
BUILDDIR = _build
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = source
9+
BUILDDIR = build
1010

1111
# Put it first so that "make" without argument is like "make help".
1212
help:

docs/conf.py

Lines changed: 0 additions & 55 deletions
This file was deleted.

docs/make.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ REM Command file for Sphinx documentation
77
if "%SPHINXBUILD%" == "" (
88
set SPHINXBUILD=sphinx-build
99
)
10-
set SOURCEDIR=.
11-
set BUILDDIR=_build
10+
set SOURCEDIR=source
11+
set BUILDDIR=build
1212

1313
%SPHINXBUILD% >NUL 2>NUL
1414
if errorlevel 9009 (

docs/requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# This file only contains a selection of the most common options. For a full
4+
# list see the documentation:
5+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6+
7+
# -- Path setup --------------------------------------------------------------
8+
9+
# If extensions (or modules to document with autodoc) are in another directory,
10+
# add these directories to sys.path here. If the directory is relative to the
11+
# documentation root, use os.path.abspath to make it absolute, like shown here.
12+
#
13+
# import os
14+
# import sys
15+
# sys.path.insert(0, os.path.abspath('.'))
16+
17+
18+
# -- Project information -----------------------------------------------------
19+
20+
import epidemik
21+
22+
project = 'epidemik'
23+
copyright = '2024, Bruno Gonçalves'
24+
author = 'Bruno Gonçalves'
25+
26+
# The full version, including alpha/beta/rc tags
27+
release = epidemik.__version__
28+
29+
30+
# -- General configuration ---------------------------------------------------
31+
32+
# Add any Sphinx extension module names here, as strings. They can be
33+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
34+
# ones.
35+
extensions = [
36+
'sphinx.ext.autodoc',
37+
'sphinx.ext.viewcode',
38+
'sphinx.ext.napoleon',
39+
'sphinx_autodoc_typehints',
40+
]
41+
42+
# Add any paths that contain templates here, relative to this directory.
43+
templates_path = ['_templates']
44+
45+
# List of patterns, relative to source directory, that match files and
46+
# directories to ignore when looking for source files.
47+
# This pattern also affects html_static_path and html_extra_path.
48+
exclude_patterns = []
49+
50+
51+
# -- Options for HTML output -------------------------------------------------
52+
53+
# The theme to use for HTML and HTML Help pages. See the documentation for
54+
# a list of builtin themes.
55+
#
56+
html_theme = 'sphinx_rtd_theme'
57+
58+
# Add any paths that contain custom static files (such as style sheets) here,
59+
# relative to this directory. They are copied after the builtin static files,
60+
# so a file named "default.css" will overwrite the builtin "default.css".
61+
html_static_path = ['_static']
File renamed without changes.

docs/index.rst renamed to docs/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. epidemik documentation master file, created by
2-
sphinx-quickstart on Mon Apr 15 09:20:13 2024.
2+
sphinx-quickstart on Sun Mar 30 10:52:07 2025.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
@@ -10,7 +10,7 @@ Welcome to epidemik's documentation!
1010
:maxdepth: 2
1111
:caption: Contents:
1212

13-
13+
modules
1414

1515
Indices and tables
1616
==================

docs/modules.rst renamed to docs/source/modules.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
epidemik
2-
========
1+
src
2+
===
33

44
.. toctree::
55
:maxdepth: 4

models/SEIIR.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Epidemic Model with 5 compartments and 6 transitions:
2+
Name: SEIIR
3+
4+
Parameters:
5+
rate : 0.166667
6+
beta : 0.222222
7+
epsilon_a : 0.160000
8+
epsilon_s : 0.240000
9+
mu : 0.100000
10+
11+
12+
Transitions:
13+
- S + Ia = E rate
14+
- S + Is = E beta
15+
- E -> Ia epsilon_a
16+
- E -> Is epsilon_s
17+
- Ia -> R mu
18+
- Is -> R mu
19+
20+
# R0=2.00

models/SEIIRD.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Epidemic Model with 6 compartments and 7 transitions:
2+
Name: SEIIRD
3+
4+
Parameters:
5+
rbeta : 0.166667
6+
beta : 0.222222
7+
epsilon_a : 0.160000
8+
epsilon_s : 0.240000
9+
mu : 0.100000
10+
mu_nd : 0.090000
11+
mu_d : 0.010000
12+
13+
14+
Transitions:
15+
- S + Ia = E rbeta
16+
- S + Is = E beta
17+
- E -> Ia epsilon_a
18+
- E -> Is epsilon_s
19+
- Ia -> R mu
20+
- Is -> R mu_nd
21+
- Is -> D mu_d
22+
23+
# R0=2.00

0 commit comments

Comments
 (0)