stisim 1.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. stisim-1.4.0/.github/workflows/README.md +12 -0
  2. stisim-1.4.0/.github/workflows/pypi_release.yaml +46 -0
  3. stisim-1.4.0/.github/workflows/tests.yaml +39 -0
  4. stisim-1.4.0/.gitignore +130 -0
  5. stisim-1.4.0/.readthedocs.yaml +26 -0
  6. stisim-1.4.0/CHANGELOG.rst +104 -0
  7. stisim-1.4.0/LICENSE +21 -0
  8. stisim-1.4.0/PKG-INFO +48 -0
  9. stisim-1.4.0/README.rst +51 -0
  10. stisim-1.4.0/code_of_conduct.rst +85 -0
  11. stisim-1.4.0/contributing.rst +17 -0
  12. stisim-1.4.0/docs/Makefile +249 -0
  13. stisim-1.4.0/docs/_static/theme_overrides.css +56 -0
  14. stisim-1.4.0/docs/_templates/footer_end.html +2 -0
  15. stisim-1.4.0/docs/_templates/footer_start.html +2 -0
  16. stisim-1.4.0/docs/_templates/navbar-side.html +12 -0
  17. stisim-1.4.0/docs/_templates/page.html +21 -0
  18. stisim-1.4.0/docs/conf.py +440 -0
  19. stisim-1.4.0/docs/images/favicon.ico +0 -0
  20. stisim-1.4.0/docs/images/idm-logo-transparent.png +0 -0
  21. stisim-1.4.0/docs/index.rst +19 -0
  22. stisim-1.4.0/docs/make.bat +289 -0
  23. stisim-1.4.0/docs/overview.rst +3 -0
  24. stisim-1.4.0/docs/requirements.txt +8 -0
  25. stisim-1.4.0/docs/tutorials.rst +3 -0
  26. stisim-1.4.0/docs/whatsnew.rst +1 -0
  27. stisim-1.4.0/pyproject.toml +51 -0
  28. stisim-1.4.0/setup.cfg +4 -0
  29. stisim-1.4.0/setup.py +6 -0
  30. stisim-1.4.0/stisim/__init__.py +25 -0
  31. stisim-1.4.0/stisim/analyzers.py +518 -0
  32. stisim-1.4.0/stisim/calibration.py +271 -0
  33. stisim-1.4.0/stisim/connectors/__init__.py +2 -0
  34. stisim-1.4.0/stisim/connectors/gud_syph.py +34 -0
  35. stisim-1.4.0/stisim/connectors/hiv_sti.py +160 -0
  36. stisim-1.4.0/stisim/data/__init__.py +2 -0
  37. stisim-1.4.0/stisim/data/downloaders.py +275 -0
  38. stisim-1.4.0/stisim/data/loaders.py +71 -0
  39. stisim-1.4.0/stisim/data/test_downloaders.py +6 -0
  40. stisim-1.4.0/stisim/demographics.py +215 -0
  41. stisim-1.4.0/stisim/diseases/__init__.py +10 -0
  42. stisim-1.4.0/stisim/diseases/bv.py +738 -0
  43. stisim-1.4.0/stisim/diseases/chlamydia.py +143 -0
  44. stisim-1.4.0/stisim/diseases/gonorrhea.py +71 -0
  45. stisim-1.4.0/stisim/diseases/gud.py +137 -0
  46. stisim-1.4.0/stisim/diseases/hiv.py +579 -0
  47. stisim-1.4.0/stisim/diseases/sti.py +615 -0
  48. stisim-1.4.0/stisim/diseases/syphilis.py +567 -0
  49. stisim-1.4.0/stisim/diseases/trichomoniasis.py +69 -0
  50. stisim-1.4.0/stisim/interventions/__init__.py +7 -0
  51. stisim-1.4.0/stisim/interventions/base_interventions.py +667 -0
  52. stisim-1.4.0/stisim/interventions/bv_interventions.py +205 -0
  53. stisim-1.4.0/stisim/interventions/gonorrhea_interventions.py +103 -0
  54. stisim-1.4.0/stisim/interventions/hiv_interventions.py +298 -0
  55. stisim-1.4.0/stisim/interventions/syphilis_interventions.py +314 -0
  56. stisim-1.4.0/stisim/networks.py +773 -0
  57. stisim-1.4.0/stisim/parameters.py +116 -0
  58. stisim-1.4.0/stisim/sim.py +366 -0
  59. stisim-1.4.0/stisim/utils.py +392 -0
  60. stisim-1.4.0/stisim/version.py +9 -0
  61. stisim-1.4.0/stisim.egg-info/PKG-INFO +48 -0
  62. stisim-1.4.0/stisim.egg-info/SOURCES.txt +84 -0
  63. stisim-1.4.0/stisim.egg-info/dependency_links.txt +1 -0
  64. stisim-1.4.0/stisim.egg-info/requires.txt +3 -0
  65. stisim-1.4.0/stisim.egg-info/top_level.txt +1 -0
  66. stisim-1.4.0/tests/devtest_amr.py +79 -0
  67. stisim-1.4.0/tests/devtest_chlamydia.py +79 -0
  68. stisim-1.4.0/tests/devtest_faststructuredsexual.py +27 -0
  69. stisim-1.4.0/tests/devtest_networks.py +102 -0
  70. stisim-1.4.0/tests/devtest_popsize.py +98 -0
  71. stisim-1.4.0/tests/devtest_structuredsexual_plots.py +165 -0
  72. stisim-1.4.0/tests/pytest.ini +5 -0
  73. stisim-1.4.0/tests/requirements.txt +4 -0
  74. stisim-1.4.0/tests/run_tests +10 -0
  75. stisim-1.4.0/tests/simple.py +8 -0
  76. stisim-1.4.0/tests/test_calibration.py +135 -0
  77. stisim-1.4.0/tests/test_connectors.py +66 -0
  78. stisim-1.4.0/tests/test_data/zimbabwe_age.csv +102 -0
  79. stisim-1.4.0/tests/test_data/zimbabwe_age_2010.csv +102 -0
  80. stisim-1.4.0/tests/test_data/zimbabwe_asfr.csv +211 -0
  81. stisim-1.4.0/tests/test_data/zimbabwe_calib.csv +34 -0
  82. stisim-1.4.0/tests/test_data/zimbabwe_deaths.csv +309 -0
  83. stisim-1.4.0/tests/test_diseases.py +100 -0
  84. stisim-1.4.0/tests/test_hiv.py +214 -0
  85. stisim-1.4.0/tests/test_networks.py +130 -0
  86. stisim-1.4.0/tests/test_sim.py +254 -0
@@ -0,0 +1,12 @@
1
+ # GitHub workflows
2
+
3
+ The continuous integration tests (`tests.yml`) run with every push on a pull request.
4
+
5
+ The PyPI workflow (`publish_pypi.yml`) runs when a tag is pushed to GitHub, e.g.
6
+
7
+ ```
8
+ git tag v1.2.3
9
+ git push origin v1.2.3
10
+ ```
11
+
12
+ Make sure the git tag matches the STIsim version.
@@ -0,0 +1,46 @@
1
+ name: Publish STIsim to PyPI (manual)
2
+
3
+ on: workflow_dispatch
4
+
5
+ jobs:
6
+ build:
7
+ name: Build STIsim
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ with:
13
+ persist-credentials: false
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v5
16
+ with:
17
+ python-version: "3.x"
18
+ - name: Install pypa/build
19
+ run: python3 -m pip install build --user
20
+ - name: Build a binary wheel and a source tarball
21
+ run: python3 -m build
22
+ - name: Store the distribution packages
23
+ uses: actions/upload-artifact@v4
24
+ with:
25
+ name: python-package-distributions
26
+ path: dist/
27
+
28
+ publish-to-pypi:
29
+ name: Publish STIsim
30
+ needs:
31
+ - build
32
+ runs-on: ubuntu-latest
33
+ environment:
34
+ name: pypi
35
+ url: https://pypi.org/p/stisim
36
+ permissions:
37
+ id-token: write
38
+
39
+ steps:
40
+ - name: Download all the dists
41
+ uses: actions/download-artifact@v4
42
+ with:
43
+ name: python-package-distributions
44
+ path: dist/
45
+ - name: Publish distribution 📦 to PyPI
46
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,39 @@
1
+ name: STIsim CI tests
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ tags: v*
7
+ pull_request:
8
+
9
+ jobs:
10
+ test:
11
+ timeout-minutes: 8
12
+ strategy:
13
+ fail-fast: false
14
+ max-parallel: 8
15
+ matrix:
16
+ os: ['ubuntu-latest']
17
+ python-version: ['3.12']
18
+ runs-on: ${{ matrix.os }}
19
+ name: Install and test
20
+ steps:
21
+ - name: Checkout sources
22
+ uses: actions/checkout@v4
23
+ - uses: actions/setup-python@master
24
+ with:
25
+ python-version: ${{ matrix.python-version }}
26
+ architecture: x64
27
+ - name: Install STIsim
28
+ run: pip install -e .
29
+ - name: Install tests
30
+ working-directory: ./tests
31
+ run: pip install -r requirements.txt
32
+ - name: Run tests
33
+ working-directory: ./tests
34
+ run: pytest test_*.py -n auto --durations=0 --junitxml=test-results.xml
35
+ - name: Publish Test Report
36
+ uses: mikepenz/action-junit-report@v4
37
+ if: always()
38
+ with:
39
+ report_paths: './tests/test-results.xml'
@@ -0,0 +1,130 @@
1
+ supervisord.log
2
+
3
+ # Byte-compiled / optimized / DLL files
4
+ __pycache__/
5
+ *.py[cod]
6
+ *$py.class
7
+
8
+ # C extensions
9
+ *.so
10
+
11
+ # Distribution / packaging
12
+ .Python
13
+ env/
14
+ develop-eggs/
15
+ dist/
16
+ downloads/
17
+ eggs/
18
+ .eggs/
19
+ lib/
20
+ lib64/
21
+ parts/
22
+ sdist/
23
+ var/
24
+ wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .coverage
43
+ .coverage.*
44
+ .cache
45
+ nosetests.xml
46
+ coverage.xml
47
+ *.cover
48
+ .hypothesis/
49
+ junit
50
+
51
+ # Translations
52
+ *.mo
53
+ *.pot
54
+
55
+ # Django stuff:
56
+ *.log
57
+ local_settings.py
58
+
59
+ # Flask stuff:
60
+ instance/
61
+ .webassets-cache
62
+
63
+ # Scrapy stuff:
64
+ .scrapy
65
+
66
+ # Sphinx documentation
67
+ docs/_build/
68
+ docs/api/
69
+ docs/modules.rst
70
+ docs/stisim.*.rst
71
+
72
+ # PyBuilder
73
+ target/
74
+
75
+ # Jupyter Notebook
76
+ .ipynb_checkpoints
77
+
78
+ # pyenv
79
+ .python-version
80
+
81
+ # celery beat schedule file
82
+ celerybeat-schedule
83
+
84
+ # SageMath parsed files
85
+ *.sage.py
86
+
87
+ # dotenv
88
+ .env
89
+
90
+ # virtualenv
91
+ .venv
92
+ venv/
93
+ ENV/
94
+
95
+ # Spyder project settings
96
+ .spyderproject
97
+ .spyproject
98
+
99
+ # Rope project settings
100
+ .ropeproject
101
+
102
+ # mkdocs documentation
103
+ /site
104
+
105
+ # mypy
106
+ .mypy_cache/
107
+ .DS_Store
108
+ *.iml
109
+ *.xml
110
+
111
+ # other stuff
112
+ package-lock.json
113
+ temp
114
+ vueapp
115
+
116
+ # Excel temp files
117
+ ~$*
118
+
119
+ # VIM
120
+ *.sw*
121
+
122
+ # flake8
123
+ flake8.txt
124
+ flake8_junit.xml
125
+
126
+ .ipython
127
+ .matplotlib
128
+ .idea
129
+ *.png
130
+ *.obj
@@ -0,0 +1,26 @@
1
+ # .readthedocs.yaml
2
+ # Read the Docs configuration file
3
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4
+
5
+ # Required
6
+ version: 2
7
+
8
+ # Set the version of Python and other tools you might need
9
+ build:
10
+ os: ubuntu-20.04
11
+ tools:
12
+ python: "3.9"
13
+
14
+ # Build documentation in the docs/ directory with Sphinx
15
+ sphinx:
16
+ configuration: docs/conf.py
17
+
18
+ # If using Sphinx, optionally build your docs in additional formats such as PDF
19
+ # formats:
20
+
21
+ # Optionally declare the Python requirements required to build your docs
22
+ python:
23
+ install:
24
+ - requirements: docs/requirements.txt
25
+ - method: pip
26
+ path: .
@@ -0,0 +1,104 @@
1
+ ==========
2
+ What's new
3
+ ==========
4
+
5
+ .. currentmodule:: stisim
6
+
7
+ All notable changes to the codebase are documented in this file.
8
+
9
+
10
+ Version 1.4 (2025-08-12)
11
+ --------------------------
12
+ - Add location arg and Sim class
13
+ - Update to work with Starsim v3.
14
+ - *GitHub info*: PR `148 <https://github.com/starsimhub/stisim/pull/148>`_
15
+
16
+
17
+ Version 1.3 (2025-06-27)
18
+ --------------------------
19
+ - Fixes to the pair-matching algorithm within the sexual network to better align partner ages
20
+ - Improvements to networks, including analyzers for debut age and partner age differences
21
+ - *GitHub info*: PR `143 <https://github.com/starsimhub/stisim/pull/143>`_
22
+
23
+
24
+ Version 1.2 (2025-06-10)
25
+ --------------------------
26
+ - Improvements to networks, including analyzers for relationship duration and network degree
27
+ - Adds a `PriorPartners` network for recalling past relationships - for use in partner notification
28
+ - *GitHub info*: PR `135 <https://github.com/starsimhub/stisim/pull/135>`_
29
+
30
+
31
+ Version 1.1.2 (2025-06-03)
32
+ --------------------------
33
+ - Bugfix to calibration class for multisims
34
+ - *GitHub info*: PR `138 <https://github.com/starsimhub/stisim/pull/138>`_
35
+
36
+
37
+ Version 1.1.1 (2025-05-23)
38
+ --------------------------
39
+ - Bugfixes to calibration class and BV connector
40
+ - Replaces the `match_pairs` method of the `StructuredSexual` network with the faster option that was previously in the `FastStructuredSexual` network (now removed).
41
+ - *GitHub info*: PR `https://github.com/starsimhub/stisim/pull/124`_
42
+
43
+
44
+ Version 1.1.0 (2025-05-13)
45
+ --------------------------
46
+ - Improvements to the Calibration class: this class now inherits directly from the Starsim calibration class, so users will have access to easier parameter constraints, plotting, flexible fit functions, etc
47
+ - Generalization of the coinfection class to handle any two diseases
48
+ - Addition of a more detailed BV model
49
+ - *GitHub info*: PR `119 <https://github.com/starsimhub/stisim/pull/119>`_
50
+
51
+
52
+ Version 1.0.5 (2025-05-08)
53
+ --------------------------
54
+ - Adds results for syphilis transmission by disease stage
55
+ - *GitHub info*: PR `112 <https://github.com/starsimhub/stisim/pull/112>`_
56
+
57
+ Version 1.0.4 (2025-05-07)
58
+ --------------------------
59
+ - Adds results for overtreatment among pregnant women
60
+ - *GitHub info*: PR `111 <https://github.com/starsimhub/stisim/pull/111>`_
61
+
62
+ Version 1.0.3 (2025-04-30)
63
+ --------------------------
64
+ - Bugfixes for congenital syphilis
65
+ - *GitHub info*: PR `85 <https://github.com/starsimhub/stisim/pull/85>`_
66
+
67
+ Version 1.0.2 (2025-04-14)
68
+ --------------------------
69
+ - Bugfixes for syphilis and GUD
70
+ - *GitHub info*: PR `83 <https://github.com/starsimhub/stisim/pull/83>`_
71
+
72
+ Version 1.0.1 (2025-03-31)
73
+ --------------------------
74
+ - Track HIV prevalence for 15-49 year olds
75
+ - *GitHub info*: PR `79 <https://github.com/starsimhub/stisim/pull/79>`_
76
+
77
+ Version 1.0.0 (2024-12-11)
78
+ --------------------------
79
+ - Updates to work with Starsim v2.2.1
80
+ - *GitHub info*: PR `63 <https://github.com/starsimhub/stisim/pull/63>`_
81
+
82
+
83
+ Version 0.2.0 (2024-11-01)
84
+ --------------------------
85
+ - Updates to work with Starsim v2.0
86
+ - *GitHub info*: PR `62 <https://github.com/starsimhub/stisim/pull/62>`_
87
+
88
+
89
+ Version 0.1.0 (2024-10-02)
90
+ --------------------------
91
+ - Collection of updates related to the NG/CT/TV work
92
+ - *GitHub info*: PR `59 <https://github.com/starsimhub/stisim/pull/59>`_
93
+
94
+
95
+ Version 0.0.2 (2024-06-07)
96
+ --------------------------
97
+ - Initial version of STIsim with structured sexual networks, models of HIV and syphilis, worksflows for model calibration, and interventions for testing and treatment.
98
+ - *GitHub info*: PR `22 <https://github.com/starsimhub/stisim/pull/22>`_
99
+
100
+
101
+ Version 0.0.1 (2024-05-15)
102
+ --------------------------
103
+ - Pre-release version
104
+
stisim-1.4.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 by the Starsim Development Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
stisim-1.4.0/PKG-INFO ADDED
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.4
2
+ Name: stisim
3
+ Version: 1.4.0
4
+ Summary: STI modelling toolbox built on the Starsim platform
5
+ Author: Alina Muellenmeister, Romesh Abeysuriya, Ryan Hull, Cliff Kerr, Jamie Cohen
6
+ Author-email: Robyn Stuart <info@starsim.org>
7
+ License: MIT License
8
+
9
+ Copyright (c) 2023 by the Starsim Development Team
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+
29
+ Project-URL: Website, https://stisim.org
30
+ Project-URL: Source, https://github.com/starsimhub/stisim/
31
+ Keywords: agent-based model,simulation,disease,epidemiology,sexually transmitted infections,STIs,STDs
32
+ Classifier: Intended Audience :: Science/Research
33
+ Classifier: License :: OSI Approved :: MIT License
34
+ Classifier: Operating System :: OS Independent
35
+ Classifier: Programming Language :: Python
36
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
37
+ Classifier: Development Status :: 5 - Production/Stable
38
+ Classifier: Programming Language :: Python :: 3.10
39
+ Classifier: Programming Language :: Python :: 3.11
40
+ Classifier: Programming Language :: Python :: 3.12
41
+ Classifier: Programming Language :: Python :: 3.13
42
+ Requires-Python: >=3.9
43
+ Description-Content-Type: text/markdown
44
+ License-File: LICENSE
45
+ Requires-Dist: starsim>=3.0.1
46
+ Requires-Dist: optuna
47
+ Requires-Dist: requests
48
+ Dynamic: license-file
@@ -0,0 +1,51 @@
1
+ STIsim
2
+ ======
3
+
4
+ .. |tests| image:: https://github.com/starsimhub/stisim/actions/workflows/tests.yaml/badge.svg
5
+
6
+ .. |pypi| image:: https://img.shields.io/pypi/v/stisim?label=PyPI
7
+ :target: https://pypi.org/project/stisim/
8
+
9
+ |tests| |pypi|
10
+
11
+ **Warning! STIsim is still in the early stages of development. It is being shared solely for transparency and to facilitate collaborative development. It is not ready to be used for real research or policy questions.**
12
+
13
+ STIsim is an agent-based modeling framework in which users can design and configure simulations of sexually-transmitted diseases. STIsim uses the `Starsim <https://starsim.org>`_ architecture, and belongs to the Starsim model suite which also includes `Covasim <https://covasim.org>`_, `HPVsim <https://hpvsim.org>`_, and `FPsim <https://fpsim.org>`_.
14
+
15
+
16
+ Requirements
17
+ ------------
18
+
19
+ Python 3.9-3.13.
20
+
21
+ We recommend, but do not require, installing STIsim in a virtual environment, such as `Anaconda <https://www.anaconda.com/products>`__.
22
+
23
+
24
+ Installation
25
+ ------------
26
+
27
+ STIsim is most easily installed via PyPI: ``pip install stisim``.
28
+
29
+ STIsim can also be installed locally. To do this, clone first this repository, then run ``pip install -e .`` (don't forget the dot at the end!).
30
+
31
+
32
+ Usage and documentation
33
+ -----------------------
34
+
35
+ Documentation is available at https://docs.idmod.org/projects/stisim.
36
+
37
+
38
+ Contributing
39
+ ------------
40
+
41
+ Questions or comments can be directed to `info@starsim.org <mailto:info@starsim.org>`__ , or on this project’s `GitHub <https://github.com/starsimhub/stisim>`__ page.
42
+
43
+ See `.github/workflows/README.md` for details on publishing new releases of STIsim.
44
+
45
+
46
+ Disclaimer
47
+ ----------
48
+
49
+ The code in this repository was developed by IDM, the Burnet Institute, and other collaborators to support our joint research on flexible agent-based modeling. We've made it publicly available under the MIT License to provide others with a better understanding of our research and an opportunity to build upon it for their own work. We make no representations that the code works as intended or that we will provide support, address issues that are found, or accept pull requests. You are welcome to create your own fork and modify the code to suit your own modeling needs as permitted under the MIT License.
50
+
51
+
@@ -0,0 +1,85 @@
1
+ ===============
2
+ Code of conduct
3
+ ===============
4
+
5
+ Our pledge
6
+ ==========
7
+
8
+ In the interest of fostering an open and welcoming environment, we as
9
+ contributors and maintainers pledge to making participation in our project and
10
+ our community a harassment-free experience for everyone, regardless of age, body
11
+ size, disability, ethnicity, sex characteristics, gender identity and expression,
12
+ level of experience, education, socio-economic status, nationality, personal
13
+ appearance, race, religion, or sexual identity and orientation.
14
+
15
+ Our standards
16
+ =============
17
+
18
+ Examples of behavior that contributes to creating a positive environment
19
+ include:
20
+
21
+ * Using welcoming and inclusive language
22
+ * Being respectful of differing viewpoints and experiences
23
+ * Gracefully accepting constructive criticism
24
+ * Focusing on what is best for the community
25
+ * Showing empathy towards other community members
26
+
27
+ Examples of unacceptable behavior by participants include:
28
+
29
+ * The use of sexualized language or imagery and unwelcome sexual attention or
30
+ advances
31
+ * Trolling, insulting/derogatory comments, and personal or political attacks
32
+ * Public or private harassment
33
+ * Publishing others' private information, such as a physical or electronic
34
+ address, without explicit permission
35
+ * Other conduct which could reasonably be considered inappropriate in a
36
+ professional setting
37
+
38
+ Our responsibilities
39
+ ====================
40
+
41
+ Project maintainers are responsible for clarifying the standards of acceptable
42
+ behavior and are expected to take appropriate and fair corrective action in
43
+ response to any instances of unacceptable behavior.
44
+
45
+ Project maintainers have the right and responsibility to remove, edit, or
46
+ reject comments, commits, code, wiki edits, issues, and other contributions
47
+ that are not aligned to this Code of Conduct, or to ban temporarily or
48
+ permanently any contributor for other behaviors that they deem inappropriate,
49
+ threatening, offensive, or harmful.
50
+
51
+ Scope
52
+ =====
53
+
54
+ This Code of Conduct applies both within project spaces and in public spaces
55
+ when an individual is representing the project or its community. Examples of
56
+ representing a project or community include using an official project e-mail
57
+ address, posting via an official social media account, or acting as an appointed
58
+ representative at an online or offline event. Representation of a project may be
59
+ further defined and clarified by project maintainers.
60
+
61
+ Enforcement
62
+ ===========
63
+
64
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
65
+ reported by contacting the project team at info@starsim.org. All
66
+ complaints will be reviewed and investigated and will result in a response that
67
+ is deemed necessary and appropriate to the circumstances. The project team is
68
+ obligated to maintain confidentiality with regard to the reporter of an incident.
69
+ Further details of specific enforcement policies may be posted separately.
70
+
71
+ Project maintainers who do not follow or enforce the Code of Conduct in good
72
+ faith may face temporary or permanent repercussions as determined by other
73
+ members of the project's leadership.
74
+
75
+ Attribution
76
+ ===========
77
+
78
+ This Code of Conduct is adapted from the `Contributor Covenant`_, version 1.4,
79
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html.
80
+
81
+ .. _Contributor Covenant: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ_.
84
+
85
+ .. _FAQ: https://www.contributor-covenant.org/faq
@@ -0,0 +1,17 @@
1
+ ============
2
+ Contributing
3
+ ============
4
+
5
+ Welcome! We are thrilled you are interested in contributing to STIsim. This
6
+ document will help you get started.
7
+
8
+ - We are serious about inclusion and believe the open-source software community still has a long way to go. The STIsim community follows a `code of conduct`_. By participating in this project, you agree to abide by its terms.
9
+ - Take a look at our house `style guide`_. STIsim more or less follows Google's Python style guide, but with some exceptions.
10
+ - Feel free to `open an issue`_ on more or less anything! This project is small enough that we don't need a formal triage system.
11
+ - Pull requests should be made against ``main``. In addition to following the `style guide`_, please make sure the tests pass (``run_tests`` in the ``tests`` folder; they also run via GitHub actions).
12
+
13
+ If you have any other questions, please reach out to us: info@starsim.org. Thank you!
14
+
15
+ .. _code of conduct: https://docs.idmod.org/projects/starsim/en/stable/conduct.html
16
+ .. _style guide: https://github.com/starsimhub/styleguide
17
+ .. _open an issue: https://github.com/starsimhub/starsim/issues/new/choose