laser-core 0.1.1__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 (72) hide show
  1. laser_core-0.1.1/.cookiecutterrc +61 -0
  2. laser_core-0.1.1/.coveragerc +16 -0
  3. laser_core-0.1.1/.editorconfig +20 -0
  4. laser_core-0.1.1/.github/workflows/github-actions.yml +137 -0
  5. laser_core-0.1.1/.pre-commit-config.yaml +22 -0
  6. laser_core-0.1.1/.readthedocs.yml +28 -0
  7. laser_core-0.1.1/AUTHORS.rst +8 -0
  8. laser_core-0.1.1/CHANGELOG.rst +8 -0
  9. laser_core-0.1.1/CONTRIBUTING.rst +85 -0
  10. laser_core-0.1.1/LICENSE +9 -0
  11. laser_core-0.1.1/MANIFEST.in +24 -0
  12. laser_core-0.1.1/PKG-INFO +155 -0
  13. laser_core-0.1.1/README.md +150 -0
  14. laser_core-0.1.1/README.rst +99 -0
  15. laser_core-0.1.1/ci/bootstrap.py +83 -0
  16. laser_core-0.1.1/ci/requirements.txt +6 -0
  17. laser_core-0.1.1/ci/templates/.github/workflows/github-actions.yml +65 -0
  18. laser_core-0.1.1/docs/authors.rst +1 -0
  19. laser_core-0.1.1/docs/changelog.rst +1 -0
  20. laser_core-0.1.1/docs/conf.py +64 -0
  21. laser_core-0.1.1/docs/contributing.rst +1 -0
  22. laser_core-0.1.1/docs/index.rst +24 -0
  23. laser_core-0.1.1/docs/installation.rst +7 -0
  24. laser_core-0.1.1/docs/kmestimator.rst +47 -0
  25. laser_core-0.1.1/docs/migration.rst +77 -0
  26. laser_core-0.1.1/docs/pyramids.rst +41 -0
  27. laser_core-0.1.1/docs/readme.rst +1 -0
  28. laser_core-0.1.1/docs/requirements.txt +2 -0
  29. laser_core-0.1.1/docs/source/laser_core.demographics.rst +29 -0
  30. laser_core-0.1.1/docs/source/laser_core.rst +69 -0
  31. laser_core-0.1.1/docs/source/modules.rst +7 -0
  32. laser_core-0.1.1/docs/spelling_wordlist.txt +11 -0
  33. laser_core-0.1.1/docs/usage.rst +7 -0
  34. laser_core-0.1.1/notes.md +130 -0
  35. laser_core-0.1.1/pyproject.toml +180 -0
  36. laser_core-0.1.1/pytest.ini +28 -0
  37. laser_core-0.1.1/setup.cfg +4 -0
  38. laser_core-0.1.1/setup.py +24 -0
  39. laser_core-0.1.1/src/UNKNOWN.egg-info/PKG-INFO +73 -0
  40. laser_core-0.1.1/src/UNKNOWN.egg-info/SOURCES.txt +55 -0
  41. laser_core-0.1.1/src/UNKNOWN.egg-info/dependency_links.txt +1 -0
  42. laser_core-0.1.1/src/UNKNOWN.egg-info/not-zip-safe +1 -0
  43. laser_core-0.1.1/src/UNKNOWN.egg-info/top_level.txt +1 -0
  44. laser_core-0.1.1/src/laser_core/__init__.py +1 -0
  45. laser_core-0.1.1/src/laser_core/__main__.py +14 -0
  46. laser_core-0.1.1/src/laser_core/cli.py +24 -0
  47. laser_core-0.1.1/src/laser_core/demographics/__init__.py +5 -0
  48. laser_core-0.1.1/src/laser_core/demographics/kmestimator.py +237 -0
  49. laser_core-0.1.1/src/laser_core/demographics/pyramid.py +155 -0
  50. laser_core-0.1.1/src/laser_core/laserframe.py +258 -0
  51. laser_core-0.1.1/src/laser_core/migration.py +466 -0
  52. laser_core-0.1.1/src/laser_core/propertyset.py +215 -0
  53. laser_core-0.1.1/src/laser_core/random.py +83 -0
  54. laser_core-0.1.1/src/laser_core/sortedqueue.py +268 -0
  55. laser_core-0.1.1/src/laser_core.egg-info/PKG-INFO +155 -0
  56. laser_core-0.1.1/src/laser_core.egg-info/SOURCES.txt +70 -0
  57. laser_core-0.1.1/src/laser_core.egg-info/dependency_links.txt +1 -0
  58. laser_core-0.1.1/src/laser_core.egg-info/not-zip-safe +1 -0
  59. laser_core-0.1.1/src/laser_core.egg-info/requires.txt +23 -0
  60. laser_core-0.1.1/src/laser_core.egg-info/top_level.txt +1 -0
  61. laser_core-0.1.1/tests/data/us-cities.csv +337 -0
  62. laser_core-0.1.1/tests/data/us-life-tables-nvs-2003.csv +101 -0
  63. laser_core-0.1.1/tests/data/us-pyramid-2023.csv +22 -0
  64. laser_core-0.1.1/tests/test_aliaseddist.py +375 -0
  65. laser_core-0.1.1/tests/test_kmestimator.py +261 -0
  66. laser_core-0.1.1/tests/test_laser_core.py +11 -0
  67. laser_core-0.1.1/tests/test_laserframe.py +187 -0
  68. laser_core-0.1.1/tests/test_migration.py +720 -0
  69. laser_core-0.1.1/tests/test_prngseed.py +280 -0
  70. laser_core-0.1.1/tests/test_propertyset.py +195 -0
  71. laser_core-0.1.1/tests/test_sortedqueue.py +199 -0
  72. laser_core-0.1.1/tox.ini +77 -0
@@ -0,0 +1,61 @@
1
+ # This file exists so you can easily regenerate your project.
2
+ #
3
+ # `cookiepatcher` is a convenient shim around `cookiecutter`
4
+ # for regenerating projects (it will generate a .cookiecutterrc
5
+ # automatically for any template). To use it:
6
+ #
7
+ # pip install cookiepatcher
8
+ # cookiepatcher gh:ionelmc/cookiecutter-pylibrary laser
9
+ #
10
+ # See:
11
+ # https://pypi.org/project/cookiepatcher
12
+ #
13
+ # Alternatively, you can run:
14
+ #
15
+ # cookiecutter --overwrite-if-exists --config-file=laser/.cookiecutterrc gh:ionelmc/cookiecutter-pylibrary
16
+
17
+ default_context:
18
+ allow_tests_inside_package: "no"
19
+ c_extension_function: "longest"
20
+ c_extension_module: "_lasercore"
21
+ c_extension_optional: "no"
22
+ c_extension_support: "no"
23
+ codacy: "no"
24
+ codacy_projectid: "[Get ID from https://app.codacy.com/gh/InstituteforDiseaseModeling/laser/settings]"
25
+ codeclimate: "no"
26
+ codecov: "yes"
27
+ command_line_interface: "click"
28
+ command_line_interface_bin_name: "idmlaser"
29
+ coveralls: "no"
30
+ distribution_name: "idmlaser"
31
+ email: "christopher.lorton@gatesfoundation.org"
32
+ formatter_quote_style: "double"
33
+ full_name: "Christopher Lorton"
34
+ github_actions: "yes"
35
+ github_actions_osx: "yes"
36
+ github_actions_windows: "yes"
37
+ license: "MIT license"
38
+ package_name: "idmlaser"
39
+ pre_commit: "yes"
40
+ project_name: "LASER"
41
+ project_short_description: "Light Agent Spatial modeling for ERadication."
42
+ pypi_badge: "yes"
43
+ pypi_disable_upload: "no"
44
+ release_date: "today"
45
+ repo_hosting: "github.com"
46
+ repo_hosting_domain: "github.com"
47
+ repo_main_branch: "main"
48
+ repo_name: "laser"
49
+ repo_username: "InstituteforDiseaseModeling"
50
+ scrutinizer: "no"
51
+ setup_py_uses_setuptools_scm: "no"
52
+ sphinx_docs: "yes"
53
+ sphinx_docs_hosting: "https://docs.idmod.org/projects/laser/en/latest/"
54
+ sphinx_doctest: "no"
55
+ sphinx_theme: "sphinx-rtd-theme"
56
+ test_matrix_separate_coverage: "no"
57
+ version: "0.1.1"
58
+ version_manager: "bump2version"
59
+ website: "https://www.idmod.org"
60
+ year_from: "2023"
61
+ year_to: "2023"
@@ -0,0 +1,16 @@
1
+ [paths]
2
+ source =
3
+ src
4
+ */site-packages
5
+
6
+ [run]
7
+ branch = true
8
+ source =
9
+ laser_core
10
+ tests
11
+ parallel = true
12
+
13
+ [report]
14
+ show_missing = true
15
+ precision = 2
16
+ omit = *migrations*
@@ -0,0 +1,20 @@
1
+ # see https://editorconfig.org/
2
+ root = true
3
+
4
+ [*]
5
+ # Use Unix-style newlines for most files (except Windows files, see below).
6
+ end_of_line = lf
7
+ trim_trailing_whitespace = true
8
+ indent_style = space
9
+ insert_final_newline = true
10
+ indent_size = 4
11
+ charset = utf-8
12
+
13
+ [*.{bat,cmd,ps1}]
14
+ end_of_line = crlf
15
+
16
+ [*.{yml,yaml}]
17
+ indent_size = 2
18
+
19
+ [*.tsv]
20
+ indent_style = tab
@@ -0,0 +1,137 @@
1
+ name: build
2
+ on: [push, pull_request]
3
+ jobs:
4
+ test:
5
+ name: ${{ matrix.name }}
6
+ runs-on: ${{ matrix.os }}
7
+ timeout-minutes: 30
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ include:
12
+ - name: 'check'
13
+ python: '3.11'
14
+ toxpython: 'python3.11'
15
+ tox_env: 'check'
16
+ os: 'ubuntu-latest'
17
+ - name: 'docs'
18
+ python: '3.11'
19
+ toxpython: 'python3.11'
20
+ tox_env: 'docs'
21
+ os: 'ubuntu-latest'
22
+ - name: 'py39 (ubuntu)'
23
+ python: '3.9'
24
+ toxpython: 'python3.9'
25
+ python_arch: 'x64'
26
+ tox_env: 'py39'
27
+ os: 'ubuntu-latest'
28
+ - name: 'py39 (windows)'
29
+ python: '3.9'
30
+ toxpython: 'python3.9'
31
+ python_arch: 'x64'
32
+ tox_env: 'py39'
33
+ os: 'windows-latest'
34
+ - name: 'py39 (macos x64)'
35
+ python: '3.9'
36
+ toxpython: 'python3.9'
37
+ python_arch: 'x64'
38
+ tox_env: 'py39'
39
+ os: 'macos-13'
40
+ - name: 'py310 (ubuntu)'
41
+ python: '3.10'
42
+ toxpython: 'python3.10'
43
+ python_arch: 'x64'
44
+ tox_env: 'py310'
45
+ os: 'ubuntu-latest'
46
+ - name: 'py310 (windows)'
47
+ python: '3.10'
48
+ toxpython: 'python3.10'
49
+ python_arch: 'x64'
50
+ tox_env: 'py310'
51
+ os: 'windows-latest'
52
+ - name: 'py310 (macos x64)'
53
+ python: '3.10'
54
+ toxpython: 'python3.10'
55
+ python_arch: 'x64'
56
+ tox_env: 'py310'
57
+ os: 'macos-13'
58
+ - name: 'py311 (ubuntu)'
59
+ python: '3.11'
60
+ toxpython: 'python3.11'
61
+ python_arch: 'x64'
62
+ tox_env: 'py311'
63
+ os: 'ubuntu-latest'
64
+ - name: 'py311 (windows)'
65
+ python: '3.11'
66
+ toxpython: 'python3.11'
67
+ python_arch: 'x64'
68
+ tox_env: 'py311'
69
+ os: 'windows-latest'
70
+ - name: 'py311 (macos x64 rosetta)'
71
+ python: '3.11'
72
+ toxpython: 'python3.11'
73
+ python_arch: 'x64'
74
+ tox_env: 'py311'
75
+ os: 'macos-latest'
76
+ - name: 'py312 (ubuntu)'
77
+ python: '3.12'
78
+ toxpython: 'python3.12'
79
+ python_arch: 'x64'
80
+ tox_env: 'py312'
81
+ os: 'ubuntu-latest'
82
+ - name: 'py312 (windows)'
83
+ python: '3.12'
84
+ toxpython: 'python3.12'
85
+ python_arch: 'x64'
86
+ tox_env: 'py312'
87
+ os: 'windows-latest'
88
+ - name: 'py312 (macos x64 rosetta)'
89
+ python: '3.12'
90
+ toxpython: 'python3.12'
91
+ python_arch: 'x64'
92
+ tox_env: 'py312'
93
+ os: 'macos-latest'
94
+ - name: 'py39 (macos arm64 apple silicon)'
95
+ python: '3.9'
96
+ toxpython: 'python3.9'
97
+ python_arch: 'arm64'
98
+ tox_env: 'py39'
99
+ os: 'macos-latest'
100
+ - name: 'py310 (macos arm64 apple silicon)'
101
+ python: '3.10'
102
+ toxpython: 'python3.10'
103
+ python_arch: 'arm64'
104
+ tox_env: 'py310'
105
+ os: 'macos-latest'
106
+ - name: 'py311 (macos arm64 apple silicon)'
107
+ python: '3.11'
108
+ toxpython: 'python3.11'
109
+ python_arch: 'arm64'
110
+ tox_env: 'py311'
111
+ os: 'macos-latest'
112
+ - name: 'py312 (macos arm64 apple silicon)'
113
+ python: '3.12'
114
+ toxpython: 'python3.12'
115
+ python_arch: 'arm64'
116
+ tox_env: 'py312'
117
+ os: 'macos-latest'
118
+ steps:
119
+ - uses: actions/checkout@v4
120
+ with:
121
+ fetch-depth: 0
122
+ - uses: actions/setup-python@v5
123
+ with:
124
+ python-version: ${{ matrix.python }}
125
+ architecture: ${{ matrix.python_arch }}
126
+ - name: install dependencies
127
+ run: |
128
+ python -mpip install --progress-bar=off -r ci/requirements.txt
129
+ virtualenv --version
130
+ pip --version
131
+ tox --version
132
+ pip list --format=freeze
133
+ - name: test
134
+ env:
135
+ TOXPYTHON: '${{ matrix.toxpython }}'
136
+ run: >
137
+ tox -e ${{ matrix.tox_env }} -v
@@ -0,0 +1,22 @@
1
+ # To install the git pre-commit hooks run:
2
+ # pre-commit install --install-hooks
3
+ # To update the versions:
4
+ # pre-commit autoupdate
5
+ exclude: '^(\.tox|ci/templates|\.bumpversion\.cfg)(/|$)'
6
+ # Note the order is intentional to avoid multiple passes of the hooks
7
+ repos:
8
+ - repo: https://github.com/astral-sh/ruff-pre-commit
9
+ rev: v0.1.6
10
+ hooks:
11
+ - id: ruff
12
+ args: [--fix, --exit-non-zero-on-fix, --show-fixes]
13
+ - repo: https://github.com/psf/black
14
+ rev: 23.11.0
15
+ hooks:
16
+ - id: black
17
+ - repo: https://github.com/pre-commit/pre-commit-hooks
18
+ rev: v4.5.0
19
+ hooks:
20
+ - id: trailing-whitespace
21
+ - id: end-of-file-fixer
22
+ - id: debug-statements
@@ -0,0 +1,28 @@
1
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
2
+ version: 2
3
+
4
+ build:
5
+ os: ubuntu-22.04
6
+ tools:
7
+ python: "3.12"
8
+
9
+ sphinx:
10
+ configuration: docs/conf.py
11
+ fail_on_warning: true
12
+
13
+ formats:
14
+ - htmlzip
15
+ - pdf
16
+
17
+ python:
18
+ install:
19
+ - requirements: docs/requirements.txt
20
+ - method: pip
21
+ path: .
22
+ extra_requirements:
23
+ - test
24
+
25
+ search:
26
+ ranking:
27
+ installation.html: 3
28
+ laser_core.html: 2
@@ -0,0 +1,8 @@
1
+
2
+ Authors
3
+ =======
4
+
5
+ * Christopher Lorton - https://www.idmod.org
6
+ * Jonathan Bloedow - https://www.idmod.org
7
+ * Katherine Rosenfeld - https://www.idmod.org
8
+ * Kevin McCarthy - https://www.idmod.org
@@ -0,0 +1,8 @@
1
+
2
+ Changelog
3
+ =========
4
+
5
+ 0.0.1 (2023-11-18)
6
+ ------------------
7
+
8
+ * First release on PyPI.
@@ -0,0 +1,85 @@
1
+ ============
2
+ Contributing
3
+ ============
4
+
5
+ Contributions are welcome, and they are greatly appreciated! Every
6
+ little bit helps, and credit will always be given.
7
+
8
+ Bug reports
9
+ ===========
10
+
11
+ When `reporting a bug <https://github.com/InstituteforDiseaseModeling/laser/issues>`_ please include:
12
+
13
+ * Your operating system name and version.
14
+ * Any details about your local setup that might be helpful in troubleshooting.
15
+ * Detailed steps to reproduce the bug.
16
+
17
+ Documentation improvements
18
+ ==========================
19
+
20
+ LASER could always use more documentation, whether as part of the
21
+ official LASER docs, in docstrings, or even on the web in blog posts,
22
+ articles, and such.
23
+
24
+ Feature requests and feedback
25
+ =============================
26
+
27
+ The best way to send feedback is to file an issue at https://github.com/InstituteforDiseaseModeling/laser/issues.
28
+
29
+ If you are proposing a feature:
30
+
31
+ * Explain in detail how it would work.
32
+ * Keep the scope as narrow as possible, to make it easier to implement.
33
+ * Remember that this is a volunteer-driven project, and that code contributions are welcome :)
34
+
35
+ Development
36
+ ===========
37
+
38
+ To set up `laser` for local development:
39
+
40
+ 1. Fork `laser <https://github.com/InstituteforDiseaseModeling/laser>`_
41
+ (look for the "Fork" button).
42
+ 2. Clone your fork locally::
43
+
44
+ git clone git@github.com:YOURGITHUBNAME/laser.git
45
+
46
+ 3. Create a branch for local development::
47
+
48
+ git checkout -b name-of-your-bugfix-or-feature
49
+
50
+ Now you can make your changes locally.
51
+
52
+ 4. When you're done making changes run all the checks and docs builder with one command::
53
+
54
+ tox
55
+
56
+ 5. Commit your changes and push your branch to GitHub::
57
+
58
+ git add .
59
+ git commit -m "Your detailed description of your changes."
60
+ git push origin name-of-your-bugfix-or-feature
61
+
62
+ 6. Submit a pull request through the GitHub website.
63
+
64
+ Pull Request Guidelines
65
+ -----------------------
66
+
67
+ If you need some code review or feedback while you're developing the code just make the pull request.
68
+
69
+ For merging, you should:
70
+
71
+ 1. Include passing tests (run ``tox``).
72
+ 2. Update documentation when there's new API, functionality etc.
73
+ 3. Add a note to ``CHANGELOG.rst`` about the changes.
74
+ 4. Add yourself to ``AUTHORS.rst``.
75
+
76
+ Tips
77
+ ----
78
+
79
+ To run a subset of tests::
80
+
81
+ tox -e envname -- pytest -k test_myfeature
82
+
83
+ To run all the test environments in *parallel*::
84
+
85
+ tox -p auto
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 - 2024 Bill & Melinda Gates Foundation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,24 @@
1
+ graft docs
2
+ graft src
3
+ graft ci
4
+ graft tests
5
+
6
+ include .bumpversion.cfg
7
+ include .cookiecutterrc
8
+ include .coveragerc
9
+ include .editorconfig
10
+ include .github/workflows/github-actions.yml
11
+ include .pre-commit-config.yaml
12
+ include .readthedocs.yml
13
+ include pytest.ini
14
+ include tox.ini
15
+
16
+ include AUTHORS.rst
17
+ include CHANGELOG.rst
18
+ include CONTRIBUTING.rst
19
+ include LICENSE
20
+ include README.rst
21
+
22
+ include *.md
23
+
24
+ global-exclude *.py[cod] __pycache__/* *.so *.dylib .DS_Store
@@ -0,0 +1,155 @@
1
+ Metadata-Version: 2.1
2
+ Name: laser-core
3
+ Version: 0.1.1
4
+ Summary: Core functionality for the Light Agent Spatial modeling for ERadication toolkit (LASER).
5
+ Author-email: Christopher Lorton <christopher.lorton@gatesfoundation.org>, Jonathan Bloedow <jonathan.bloedow@gatesfoundation.org>, Katherine Rosenfeld <katherine.rosenfeld@gatesfoundation.org>, Kevin McCarthy <kevin.mccarthy@gatesfoundation.org>
6
+ Maintainer-email: Christopher Lorton <christopher.lorton@gatesfoundation.org>, Jonathan Bloedow <jonathan.bloedow@gatesfoundation.org>
7
+ License: MIT License
8
+
9
+ Copyright (c) 2023 - 2024 Bill & Melinda Gates Foundation
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16
+
17
+ Project-URL: Homepage, https://github.com/InstituteforDiseaseModeling/laser
18
+ Project-URL: Issues, https://github.com/InstituteforDiseaseModeling/laser/issues
19
+ Project-URL: Documentation, https://docs.idmod.org/projects/laser/en/latest/
20
+ Project-URL: Changelog, https://docs.idmod.org/projects/laser/en/latest/changelog.html
21
+ Keywords: spatial modeling,disease eradication,agent-based modeling
22
+ Classifier: Programming Language :: Python :: 3
23
+ Classifier: License :: OSI Approved :: MIT License
24
+ Classifier: Operating System :: OS Independent
25
+ Classifier: Programming Language :: Python
26
+ Classifier: Programming Language :: Python :: 3
27
+ Classifier: Programming Language :: Python :: 3.9
28
+ Classifier: Programming Language :: Python :: 3.10
29
+ Classifier: Programming Language :: Python :: 3.11
30
+ Classifier: Programming Language :: Python :: 3.12
31
+ Classifier: Programming Language :: Python :: Implementation :: CPython
32
+ Requires-Python: >=3.9
33
+ Description-Content-Type: text/x-rst
34
+ License-File: LICENSE
35
+ License-File: AUTHORS.rst
36
+ Requires-Dist: click
37
+ Requires-Dist: numpy<2.0.0,>=1.26.4
38
+ Requires-Dist: numba~=0.59.1
39
+ Requires-Dist: polars
40
+ Requires-Dist: tqdm
41
+ Requires-Dist: matplotlib
42
+ Requires-Dist: pandas
43
+ Requires-Dist: pytest
44
+ Provides-Extra: dev
45
+ Requires-Dist: pytest>=6.0; extra == "dev"
46
+ Requires-Dist: black; extra == "dev"
47
+ Requires-Dist: flake8; extra == "dev"
48
+ Provides-Extra: docs
49
+ Requires-Dist: sphinx>=1.3; extra == "docs"
50
+ Requires-Dist: sphinx-rtd-theme; extra == "docs"
51
+ Requires-Dist: furo; extra == "docs"
52
+ Provides-Extra: test
53
+ Requires-Dist: pytest>=6.0; extra == "test"
54
+ Requires-Dist: pytest-cov; extra == "test"
55
+ Requires-Dist: scipy; extra == "test"
56
+
57
+ ========
58
+ Overview
59
+ ========
60
+
61
+ .. start-badges
62
+
63
+ .. list-table::
64
+ :stub-columns: 1
65
+
66
+ * - docs
67
+ - |docs|
68
+ * - tests
69
+ - | |github-actions|
70
+ | |codecov|
71
+ * - package
72
+ - | |version| |wheel| |supported-versions| |supported-implementations|
73
+ | |commits-since|
74
+ .. |docs| image:: https://readthedocs.org/projects/idmlaser/badge/?style=flat
75
+ :target: https://docs.idmod.org/projects/laser/en/latest/
76
+ :alt: Documentation Status
77
+
78
+ .. |github-actions| image:: https://github.com/InstituteforDiseaseModeling/laser/actions/workflows/github-actions.yml/badge.svg
79
+ :alt: GitHub Actions Build Status
80
+ :target: https://github.com/InstituteforDiseaseModeling/laser/actions
81
+
82
+ .. |codecov| image:: https://codecov.io/gh/InstituteforDiseaseModeling/laser/branch/main/graphs/badge.svg?branch=main
83
+ :alt: Coverage Status
84
+ :target: https://app.codecov.io/github/InstituteforDiseaseModeling/laser
85
+
86
+ .. |version| image:: https://img.shields.io/pypi/v/idmlaser.svg
87
+ :alt: PyPI Package latest release
88
+ :target: https://test.pypi.org/project/laser-core/
89
+
90
+ .. |wheel| image:: https://img.shields.io/pypi/wheel/idmlaser.svg
91
+ :alt: PyPI Wheel
92
+ :target: https://test.pypi.org/project/laser-core/
93
+
94
+ .. |supported-versions| image:: https://img.shields.io/pypi/pyversions/idmlaser.svg
95
+ :alt: Supported versions
96
+ :target: https://test.pypi.org/project/laser-core/
97
+
98
+ .. |supported-implementations| image:: https://img.shields.io/pypi/implementation/idmlaser.svg
99
+ :alt: Supported implementations
100
+ :target: https://test.pypi.org/project/laser-core/
101
+
102
+ .. |commits-since| image:: https://img.shields.io/github/commits-since/InstituteforDiseaseModeling/laser/v0.1.1.svg
103
+ :alt: Commits since latest release
104
+ :target: https://github.com/InstituteforDiseaseModeling/laser/compare/v0.1.1...main
105
+
106
+
107
+
108
+ .. end-badges
109
+
110
+ Light Agent Spatial modeling for ERadication.
111
+
112
+ * Free software: MIT license
113
+
114
+ Installation
115
+ ============
116
+
117
+ ::
118
+
119
+ pip install laser-core
120
+
121
+ You can also install the in-development version with::
122
+
123
+ pip install https://github.com/InstituteforDiseaseModeling/laser/archive/main.zip
124
+
125
+
126
+ Documentation
127
+ =============
128
+
129
+
130
+ https://docs.idmod.org/projects/laser/en/latest/
131
+
132
+
133
+ Development
134
+ ===========
135
+
136
+ To run all the tests run::
137
+
138
+ tox
139
+
140
+ Note, to combine the coverage data from all the tox environments run:
141
+
142
+ .. list-table::
143
+ :widths: 10 90
144
+ :stub-columns: 1
145
+
146
+ - - Windows
147
+ - ::
148
+
149
+ set PYTEST_ADDOPTS=--cov-append
150
+ tox
151
+
152
+ - - Other
153
+ - ::
154
+
155
+ PYTEST_ADDOPTS=--cov-append tox