pymdea 0.1.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.
- pymdea-0.1.0/.gitattributes +1 -0
- pymdea-0.1.0/.github/ISSUE_TEMPLATE//360/237/220/236-bug-report.md +28 -0
- pymdea-0.1.0/.github/ISSUE_TEMPLATE//360/237/222/241-new-enhancement.md +28 -0
- pymdea-0.1.0/.github/pull_request_template.md +25 -0
- pymdea-0.1.0/.github/workflows/mkdocs.yml +30 -0
- pymdea-0.1.0/.github/workflows/pytest.yml +22 -0
- pymdea-0.1.0/.github/workflows/ruff.yml +8 -0
- pymdea-0.1.0/.gitignore +163 -0
- pymdea-0.1.0/CITATION.cff +17 -0
- pymdea-0.1.0/CONTRIBUTING.md +102 -0
- pymdea-0.1.0/LICENSE +21 -0
- pymdea-0.1.0/PKG-INFO +88 -0
- pymdea-0.1.0/README.md +30 -0
- pymdea-0.1.0/docs/api-reference/core.md +3 -0
- pymdea-0.1.0/docs/api-reference/plot.md +3 -0
- pymdea-0.1.0/docs/index.md +25 -0
- pymdea-0.1.0/docs/javascripts/mathjax.js +19 -0
- pymdea-0.1.0/docs/user-guide/further-reading.md +30 -0
- pymdea-0.1.0/docs/user-guide/getting-started.ipynb +247 -0
- pymdea-0.1.0/docs/user-guide/interpreting.md +26 -0
- pymdea-0.1.0/docs/user-guide/tuning.md +13 -0
- pymdea-0.1.0/mkdocs.yml +86 -0
- pymdea-0.1.0/pyproject.toml +58 -0
- pymdea-0.1.0/src/pymdea/__init__.py +0 -0
- pymdea-0.1.0/src/pymdea/core.py +356 -0
- pymdea-0.1.0/src/pymdea/plot.py +126 -0
- pymdea-0.1.0/tests/__init__.py +0 -0
- pymdea-0.1.0/tests/test_core.py +167 -0
- pymdea-0.1.0/uv.lock +1521 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*.ipynb linguist-vendored
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "\U0001F41E Bug report"
|
|
3
|
+
about: Report a problem
|
|
4
|
+
title: 'Bug: BUG'
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Describe the bug
|
|
11
|
+
|
|
12
|
+
A clear and concise description of what the bug is.
|
|
13
|
+
|
|
14
|
+
## Expected behavior
|
|
15
|
+
|
|
16
|
+
A clear and concise description of what you expected to happen.
|
|
17
|
+
|
|
18
|
+
## Error log
|
|
19
|
+
|
|
20
|
+
Add the full error log which is output when the bug occurs.
|
|
21
|
+
|
|
22
|
+
## Minimum working example
|
|
23
|
+
|
|
24
|
+
Add a minimal example which can be used to reproduce the bug.
|
|
25
|
+
|
|
26
|
+
## Additional context
|
|
27
|
+
|
|
28
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "\U0001F4A1 New enhancement"
|
|
3
|
+
about: Suggest an idea
|
|
4
|
+
title: 'Enhancement: FEATURE'
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Related issues
|
|
11
|
+
|
|
12
|
+
If applicable, link to related GitHub issues here.
|
|
13
|
+
|
|
14
|
+
## Enhancement description
|
|
15
|
+
|
|
16
|
+
Describe what changes or new functionality is you're suggesting.
|
|
17
|
+
|
|
18
|
+
## Ideal implementation
|
|
19
|
+
|
|
20
|
+
Describe how you think the enhancement would be best implemented.
|
|
21
|
+
|
|
22
|
+
## Alternatives considered
|
|
23
|
+
|
|
24
|
+
If applicable, describe any alternatives you've considered.
|
|
25
|
+
|
|
26
|
+
## Additional context
|
|
27
|
+
|
|
28
|
+
Add any other context or information about the enhancement suggestion here.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Proposed changes
|
|
2
|
+
|
|
3
|
+
Describe the big picture of your changes here. If it fixes a bug or resolves a feature request be sure to link to that issue.
|
|
4
|
+
|
|
5
|
+
## Types of changes
|
|
6
|
+
|
|
7
|
+
_Put an `x` in boxes that apply_
|
|
8
|
+
|
|
9
|
+
- [ ] Bugfix (non-breaking change which fixes an issue)
|
|
10
|
+
- [ ] New feature (non-breaking change which adds functionality)
|
|
11
|
+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
|
12
|
+
- [ ] Documentation Update (if none of the other choices apply)
|
|
13
|
+
|
|
14
|
+
## Checklist
|
|
15
|
+
|
|
16
|
+
_Put an `x` in boxes that apply. You can also fill these out after creating the PR_
|
|
17
|
+
|
|
18
|
+
- [ ] Lint and unit tests pass locally with my changes
|
|
19
|
+
- [ ] I have added tests that prove my fix is effective or that my feature works
|
|
20
|
+
- [ ] I have added the necessary documentation (if appropriate)
|
|
21
|
+
- [ ] Any dependent changes have been merged and published in downstream modules
|
|
22
|
+
|
|
23
|
+
## Further comments
|
|
24
|
+
|
|
25
|
+
If this is a large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: mkdocs
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- main
|
|
6
|
+
permissions:
|
|
7
|
+
contents: write
|
|
8
|
+
jobs:
|
|
9
|
+
deploy:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- name: Configure Git Credentials
|
|
14
|
+
run: |
|
|
15
|
+
git config user.name github-actions[bot]
|
|
16
|
+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
|
17
|
+
- uses: actions/setup-python@v5
|
|
18
|
+
with:
|
|
19
|
+
python-version: 3.x
|
|
20
|
+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
|
|
21
|
+
- uses: actions/cache@v4
|
|
22
|
+
with:
|
|
23
|
+
key: mkdocs-material-${{ env.cache_id }}
|
|
24
|
+
path: .cache
|
|
25
|
+
restore-keys: |
|
|
26
|
+
mkdocs-material-
|
|
27
|
+
- run: pip install mkdocs-material
|
|
28
|
+
- run: pip install "mkdocstrings[python]"
|
|
29
|
+
- run: pip install mkdocs-jupyter
|
|
30
|
+
- run: mkdocs gh-deploy --force
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Pytest
|
|
2
|
+
on: push
|
|
3
|
+
jobs:
|
|
4
|
+
build:
|
|
5
|
+
runs-on: ubuntu-latest
|
|
6
|
+
strategy:
|
|
7
|
+
matrix:
|
|
8
|
+
python-version:
|
|
9
|
+
- "3.11"
|
|
10
|
+
- "3.12"
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- name: Set up uv
|
|
14
|
+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
15
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
16
|
+
uses: actions/setup-python@v5
|
|
17
|
+
with:
|
|
18
|
+
python-version: ${{ matrix.python-version }}
|
|
19
|
+
- name: Install the project
|
|
20
|
+
run: uv sync --all-extras --dev
|
|
21
|
+
- name: Run tests
|
|
22
|
+
run: uv run pytest
|
pymdea-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
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
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
110
|
+
.pdm.toml
|
|
111
|
+
|
|
112
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
113
|
+
__pypackages__/
|
|
114
|
+
|
|
115
|
+
# Celery stuff
|
|
116
|
+
celerybeat-schedule
|
|
117
|
+
celerybeat.pid
|
|
118
|
+
|
|
119
|
+
# SageMath parsed files
|
|
120
|
+
*.sage.py
|
|
121
|
+
|
|
122
|
+
# Environments
|
|
123
|
+
.env
|
|
124
|
+
.venv
|
|
125
|
+
env/
|
|
126
|
+
venv/
|
|
127
|
+
ENV/
|
|
128
|
+
env.bak/
|
|
129
|
+
venv.bak/
|
|
130
|
+
|
|
131
|
+
# Spyder project settings
|
|
132
|
+
.spyderproject
|
|
133
|
+
.spyproject
|
|
134
|
+
|
|
135
|
+
# Rope project settings
|
|
136
|
+
.ropeproject
|
|
137
|
+
|
|
138
|
+
# mkdocs documentation
|
|
139
|
+
/site
|
|
140
|
+
|
|
141
|
+
# mypy
|
|
142
|
+
.mypy_cache/
|
|
143
|
+
.dmypy.json
|
|
144
|
+
dmypy.json
|
|
145
|
+
|
|
146
|
+
# Pyre type checker
|
|
147
|
+
.pyre/
|
|
148
|
+
|
|
149
|
+
# pytype static type analyzer
|
|
150
|
+
.pytype/
|
|
151
|
+
|
|
152
|
+
# Cython debug symbols
|
|
153
|
+
cython_debug/
|
|
154
|
+
|
|
155
|
+
# PyCharm
|
|
156
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
157
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
158
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
159
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
160
|
+
#.idea/
|
|
161
|
+
|
|
162
|
+
# VScode
|
|
163
|
+
.vscode/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: "If you use this software, please cite it as below."
|
|
3
|
+
authors:
|
|
4
|
+
- family-names: Culbreth
|
|
5
|
+
given-names: Garland
|
|
6
|
+
orcid: https://orcid.org/0000-0002-3096-4834
|
|
7
|
+
- family-names: Baxley
|
|
8
|
+
given-names: Jacob
|
|
9
|
+
orcid: https://orcid.org/0000-0003-0782-5454
|
|
10
|
+
- family-names: Lambert
|
|
11
|
+
given-names: David
|
|
12
|
+
orcid: https://orcid.org/0000-0001-6384-3214
|
|
13
|
+
title: "pymdea"
|
|
14
|
+
version: 0.1.0
|
|
15
|
+
doi: 10.48550/arXiv.2311.11453
|
|
16
|
+
date-released: 2024-08-30
|
|
17
|
+
url: "https://garland-culbreth.github.io/pymdea/"
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for contributing! All contributions are welcome, from reporting bugs to implementing new features.
|
|
4
|
+
|
|
5
|
+
## Reporting bugs
|
|
6
|
+
|
|
7
|
+
Use [GitHub issues](https://github.com/garland-culbreth/network-infodemic-model/issues) to track bugs. You can report new bugs by creating a [new issue](https://github.com/garland-culbreth/network-infodemic-model/issues/new/choose).
|
|
8
|
+
|
|
9
|
+
Before creating a new bug report, check that the bug has not already been reported in an existing issue. If a closed issue seems related to the bug you're experiencing, create a new issue and link the closed one in the your issue description.
|
|
10
|
+
|
|
11
|
+
## Suggesting enhancements
|
|
12
|
+
|
|
13
|
+
Use [GitHub issues](https://github.com/garland-culbreth/network-infodemic-model/issues) to suggest enhancements. You can suggest new features by creating a [new issue](https://github.com/garland-culbreth/network-infodemic-model/issues/new/choose).
|
|
14
|
+
|
|
15
|
+
Before creating a new enhancement suggestion, check that the enhancement has not already been suggested in an existing issue.
|
|
16
|
+
|
|
17
|
+
## Contributing to the codebase
|
|
18
|
+
|
|
19
|
+
### Python style
|
|
20
|
+
|
|
21
|
+
All pull requests must pass a [ruff](https://docs.astral.sh/ruff/linter/) GitHub actions [workflow](https://github.com/garland-culbreth/network-echos/actions/workflows/ruff.yml) which enforces consistent style. Installing a ruff plugin for your IDE is recommended to check changes before pushing.
|
|
22
|
+
|
|
23
|
+
### Docstrings
|
|
24
|
+
|
|
25
|
+
All new code should be be documented. Follow the [NumPy docstring style](https://numpydoc.readthedocs.io/en/latest/format.html#docstring-standard).
|
|
26
|
+
|
|
27
|
+
### Tests
|
|
28
|
+
|
|
29
|
+
All new code should have tests. Tests for a module should cover everything in the module. All pull requests must pass a [pytest](https://docs.pytest.org/en/stable/) GitHub actions [workflow](https://github.com/garland-culbreth/network-echos/actions/workflows/pytest.yml), which runs all tests, before they can be merged. Before pushing changes, run all tests with pytest locally and confirm they pass.
|
|
30
|
+
|
|
31
|
+
## Version control
|
|
32
|
+
|
|
33
|
+
Use [git](https://git-scm.com/) for version control.
|
|
34
|
+
|
|
35
|
+
### Flow
|
|
36
|
+
|
|
37
|
+
Use [short-lived feature branches](https://trunkbaseddevelopment.com/short-lived-feature-branches/) for [trunk-based development](https://trunkbaseddevelopment.com/). Every branch should correspond to one change, or one collection of closely related changes, and should be merged to main within a few days.
|
|
38
|
+
|
|
39
|
+
### Branches
|
|
40
|
+
|
|
41
|
+
Branch names should be short and consisely describe the gist of changes being made. They should be prefixed with one of the [standard acronyms](#standard-acronyms) in lower case, followed by a forward slash `/`. Use hyphens `-` to separate words.
|
|
42
|
+
|
|
43
|
+
#### Standard acronyms
|
|
44
|
+
|
|
45
|
+
- `BLD`: Build. For changes related to builds.
|
|
46
|
+
- `DOC`: Documentation. For changes related to documentation.
|
|
47
|
+
- `ENH`: Enhancement. For new features or other chances that enhance functionality.
|
|
48
|
+
- `FIX`: Bug fix. For changes that fix bugs and broken functionality.
|
|
49
|
+
- `MNT`: Maintenance. For changes related to maintaining the codebase which don't add new functionality or fix broken functionality.
|
|
50
|
+
- `REL`: Release. For changes related to releases.
|
|
51
|
+
- `TST`: Test. For new tests or changes to existing tests.
|
|
52
|
+
|
|
53
|
+
#### Example branch names
|
|
54
|
+
|
|
55
|
+
```txt
|
|
56
|
+
enh/add-a-feature
|
|
57
|
+
fix/fix-a-bug
|
|
58
|
+
doc/write-new-docs
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Pull requests
|
|
62
|
+
|
|
63
|
+
Follow the pull request template.
|
|
64
|
+
|
|
65
|
+
Titles should be shorter than 80 characters, including spaces, and clearly state the purpose of the changes proposed. They should begin with a [standard icon](#standard-icons) and one of the [standard acronyms](#standard-acronyms) in all caps, followed by a hyphen ` - ` padded by one space on either side.
|
|
66
|
+
|
|
67
|
+
#### Standard icons
|
|
68
|
+
|
|
69
|
+
Emoji icons corresponding to the [standard acronyms](#standard-acronyms). Use these as the beginning of the prefix in pull request titles.
|
|
70
|
+
|
|
71
|
+
- `BLD`: 📦
|
|
72
|
+
- `DOC`: 📝
|
|
73
|
+
- `ENH`: 💡
|
|
74
|
+
- `FIX`: 🧯
|
|
75
|
+
- `MNT`: 🛠️
|
|
76
|
+
- `REL`: 🚀
|
|
77
|
+
- `TST`: 🧪
|
|
78
|
+
|
|
79
|
+
#### Example pull request titles
|
|
80
|
+
|
|
81
|
+
```txt
|
|
82
|
+
🧯FIX - Fix bug in some_function when some_parameter has forbidden value
|
|
83
|
+
💡ENH - Support some new useful thing
|
|
84
|
+
📝DOC - Correct some mis-spelled word on a page
|
|
85
|
+
🛠️MNT - Change formatter rule
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Merging
|
|
89
|
+
|
|
90
|
+
#### From a feature branch into the main branch
|
|
91
|
+
|
|
92
|
+
Use a merge commit when merging a feature branch into main.
|
|
93
|
+
|
|
94
|
+
#### From the main branch into a feature branch
|
|
95
|
+
|
|
96
|
+
Use rebase when merging new changes from main into an existing feature branch. This should rarely be needed.
|
|
97
|
+
|
|
98
|
+
## Contributing to the documentation
|
|
99
|
+
|
|
100
|
+
### Documentation style
|
|
101
|
+
|
|
102
|
+
Follow the [Google developer documentation style guide](https://developers.google.com/style/highlights).
|
pymdea-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Garland Culbreth
|
|
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.
|
pymdea-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: pymdea
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Modified diffusion entropy analysis; a temporal complexity analysis method
|
|
5
|
+
Project-URL: Documentation, https://garland-culbreth.github.io/pymdea
|
|
6
|
+
Project-URL: Repository, https://github.com/garland-culbreth/pymdea
|
|
7
|
+
Project-URL: Issues, https://github.com/garland-culbreth/pymdea/issues
|
|
8
|
+
Author: Jacob Baxley, David Lambert
|
|
9
|
+
Author-email: Garland Culbreth <culbreth.garland@gmail.com>
|
|
10
|
+
Maintainer-email: Garland Culbreth <culbreth.garland@gmail.com>
|
|
11
|
+
License: MIT License
|
|
12
|
+
|
|
13
|
+
Copyright (c) 2023 Garland Culbreth
|
|
14
|
+
|
|
15
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
16
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
17
|
+
in the Software without restriction, including without limitation the rights
|
|
18
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
19
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
20
|
+
furnished to do so, subject to the following conditions:
|
|
21
|
+
|
|
22
|
+
The above copyright notice and this permission notice shall be included in all
|
|
23
|
+
copies or substantial portions of the Software.
|
|
24
|
+
|
|
25
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
26
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
27
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
28
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
29
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
30
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
31
|
+
SOFTWARE.
|
|
32
|
+
License-File: LICENSE
|
|
33
|
+
Classifier: Development Status :: 4 - Beta
|
|
34
|
+
Classifier: Intended Audience :: Science/Research
|
|
35
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
38
|
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
39
|
+
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
40
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
41
|
+
Requires-Python: >=3.11
|
|
42
|
+
Requires-Dist: ipykernel>=6.29.5
|
|
43
|
+
Requires-Dist: logging>=0.4.9.6
|
|
44
|
+
Requires-Dist: matplotlib>=3.9.2
|
|
45
|
+
Requires-Dist: mkdocs-jupyter>=0.24.8
|
|
46
|
+
Requires-Dist: mkdocs-material>=9.5.33
|
|
47
|
+
Requires-Dist: mkdocstrings[python]>=0.25.2
|
|
48
|
+
Requires-Dist: numpy>=1.19.0
|
|
49
|
+
Requires-Dist: pathlib>=1.0.1
|
|
50
|
+
Requires-Dist: polars>=1.5.0
|
|
51
|
+
Requires-Dist: pytest>=8.3.2
|
|
52
|
+
Requires-Dist: scipy>=1.14.1
|
|
53
|
+
Requires-Dist: seaborn>=0.13.2
|
|
54
|
+
Requires-Dist: stochastic>=0.6.0
|
|
55
|
+
Requires-Dist: tqdm>=4.66.5
|
|
56
|
+
Requires-Dist: typing>=3.10.0.0
|
|
57
|
+
Description-Content-Type: text/markdown
|
|
58
|
+
|
|
59
|
+
# Diffusion entropy analysis
|
|
60
|
+
|
|
61
|
+
[](https://github.com/garland-culbreth/pymdea/actions/workflows/pytest.yml)
|
|
62
|
+
[](https://github.com/garland-culbreth/pymdea/actions/workflows/mkdocs.yml)
|
|
63
|
+
[](https://github.com/garland-culbreth/pymdea)
|
|
64
|
+
[](https://github.com/astral-sh/ruff)
|
|
65
|
+
[](https://github.com/astral-sh/uv)
|
|
66
|
+
|
|
67
|
+
Diffusion Entropy Analysis is a time-series analysis method for detecting temporal scaling in a data set, such as particle motion, a seismograph, or an electroencephalograph signal. Diffusion Entropy Analysis converts a timeseries into a diffusion trajectory and uses the entropy of this trajectory to measure the temporal scaling in the data. This is accomplished by moving a window along the trajectory, then using the relationship between the natural logarithm of the length of the window and the Shannon entropy to extract the scaling of the time-series process.
|
|
68
|
+
|
|
69
|
+
For further details about the method and how it works, please see [Culbreth, G., Baxley, J. and Lambert, D., 2023. Detecting temporal scaling with modified diffusion entropy analysis. _arXiv preprint arXiv:2311.11453_](https://arxiv.org/abs/2311.11453).
|
|
70
|
+
|
|
71
|
+
## Installation and use
|
|
72
|
+
|
|
73
|
+
You'll need an up to date Python installation, e.g., through [uv](https://docs.astral.sh/uv/#python-management). Once you have one, clone this repository to a location on your file system where you can work with the files.
|
|
74
|
+
|
|
75
|
+
A user guide is available in the [documentation](https://garland-culbreth.github.io/pymdea/).
|
|
76
|
+
|
|
77
|
+
## Built with
|
|
78
|
+
|
|
79
|
+
[](https://numpy.org/)
|
|
80
|
+
[](https://scipy.org/)
|
|
81
|
+
[](https://pola.rs/)
|
|
82
|
+
[](https://matplotlib.org/)
|
|
83
|
+
[](https://seaborn.pydata.org/)
|
|
84
|
+
[](https://tqdm.github.io/)
|
|
85
|
+
[](https://docs.pytest.org/en/stable/)
|
|
86
|
+
[](https://docs.astral.sh/ruff/)
|
|
87
|
+
[](https://squidfunk.github.io/mkdocs-material/)
|
|
88
|
+
[](https://mkdocstrings.github.io/)
|
pymdea-0.1.0/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Diffusion entropy analysis
|
|
2
|
+
|
|
3
|
+
[](https://github.com/garland-culbreth/pymdea/actions/workflows/pytest.yml)
|
|
4
|
+
[](https://github.com/garland-culbreth/pymdea/actions/workflows/mkdocs.yml)
|
|
5
|
+
[](https://github.com/garland-culbreth/pymdea)
|
|
6
|
+
[](https://github.com/astral-sh/ruff)
|
|
7
|
+
[](https://github.com/astral-sh/uv)
|
|
8
|
+
|
|
9
|
+
Diffusion Entropy Analysis is a time-series analysis method for detecting temporal scaling in a data set, such as particle motion, a seismograph, or an electroencephalograph signal. Diffusion Entropy Analysis converts a timeseries into a diffusion trajectory and uses the entropy of this trajectory to measure the temporal scaling in the data. This is accomplished by moving a window along the trajectory, then using the relationship between the natural logarithm of the length of the window and the Shannon entropy to extract the scaling of the time-series process.
|
|
10
|
+
|
|
11
|
+
For further details about the method and how it works, please see [Culbreth, G., Baxley, J. and Lambert, D., 2023. Detecting temporal scaling with modified diffusion entropy analysis. _arXiv preprint arXiv:2311.11453_](https://arxiv.org/abs/2311.11453).
|
|
12
|
+
|
|
13
|
+
## Installation and use
|
|
14
|
+
|
|
15
|
+
You'll need an up to date Python installation, e.g., through [uv](https://docs.astral.sh/uv/#python-management). Once you have one, clone this repository to a location on your file system where you can work with the files.
|
|
16
|
+
|
|
17
|
+
A user guide is available in the [documentation](https://garland-culbreth.github.io/pymdea/).
|
|
18
|
+
|
|
19
|
+
## Built with
|
|
20
|
+
|
|
21
|
+
[](https://numpy.org/)
|
|
22
|
+
[](https://scipy.org/)
|
|
23
|
+
[](https://pola.rs/)
|
|
24
|
+
[](https://matplotlib.org/)
|
|
25
|
+
[](https://seaborn.pydata.org/)
|
|
26
|
+
[](https://tqdm.github.io/)
|
|
27
|
+
[](https://docs.pytest.org/en/stable/)
|
|
28
|
+
[](https://docs.astral.sh/ruff/)
|
|
29
|
+
[](https://squidfunk.github.io/mkdocs-material/)
|
|
30
|
+
[](https://mkdocstrings.github.io/)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Diffusion entropy analysis
|
|
2
|
+
|
|
3
|
+
[](https://github.com/astral-sh/ruff)
|
|
4
|
+
[](https://github.com/astral-sh/uv)
|
|
5
|
+
|
|
6
|
+
Diffusion Entropy Analysis is a time-series analysis method for detecting temporal scaling in a data set, such as particle motion, a seismograph, or an electroencephalograph signal. Diffusion Entropy Analysis converts a timeseries into a diffusion trajectory and uses the entropy of this trajectory to measure the temporal scaling in the data. This is accomplished by moving a window along the trajectory, then using the relationship between the natural logarithm of the length of the window and the Shannon entropy to extract the scaling of the time-series process.
|
|
7
|
+
|
|
8
|
+
For further details about the method and how it works, please see [Culbreth, G., Baxley, J. and Lambert, D., 2023. Detecting temporal scaling with modified diffusion entropy analysis. _arXiv preprint arXiv:2311.11453_](https://arxiv.org/abs/2311.11453).
|
|
9
|
+
|
|
10
|
+
## Installation and use
|
|
11
|
+
|
|
12
|
+
You'll need an up to date Python installation, e.g., through [uv](https://docs.astral.sh/uv/#python-management). Once you have one, clone this repository to a location on your file system where you can work with the files.
|
|
13
|
+
|
|
14
|
+
## Built with
|
|
15
|
+
|
|
16
|
+
[](https://numpy.org/)
|
|
17
|
+
[](https://scipy.org/)
|
|
18
|
+
[](https://pola.rs/)
|
|
19
|
+
[](https://matplotlib.org/)
|
|
20
|
+
[](https://seaborn.pydata.org/)
|
|
21
|
+
[](https://tqdm.github.io/)
|
|
22
|
+
[](https://docs.pytest.org/en/stable/)
|
|
23
|
+
[](https://docs.astral.sh/ruff/)
|
|
24
|
+
[](https://squidfunk.github.io/mkdocs-material/)
|
|
25
|
+
[](https://mkdocstrings.github.io/)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
window.MathJax = {
|
|
2
|
+
tex: {
|
|
3
|
+
inlineMath: [["\\(", "\\)"], ['$', '$']],
|
|
4
|
+
displayMath: [["\\[", "\\]"], ['$$', '$$']],
|
|
5
|
+
processEscapes: true,
|
|
6
|
+
processEnvironments: true
|
|
7
|
+
},
|
|
8
|
+
options: {
|
|
9
|
+
ignoreHtmlClass: ".*|",
|
|
10
|
+
processHtmlClass: "arithmatex"
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
document$.subscribe(() => {
|
|
15
|
+
MathJax.startup.output.clearCache()
|
|
16
|
+
MathJax.typesetClear()
|
|
17
|
+
MathJax.texReset()
|
|
18
|
+
MathJax.typesetPromise()
|
|
19
|
+
})
|