trvdos 0.0.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.
- trvdos-0.0.0/.codecov.yml +14 -0
- trvdos-0.0.0/.gitattributes +2 -0
- trvdos-0.0.0/.github/ISSUE_TEMPLATE/bug_report.md +34 -0
- trvdos-0.0.0/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- trvdos-0.0.0/.github/PULL_REQUEST_TEMPLATE.md +17 -0
- trvdos-0.0.0/.github/workflows/gh-ci.yaml +159 -0
- trvdos-0.0.0/.gitignore +133 -0
- trvdos-0.0.0/.pre-commit-config.yaml +21 -0
- trvdos-0.0.0/.pylintrc +655 -0
- trvdos-0.0.0/AUTHORS.md +23 -0
- trvdos-0.0.0/CHANGELOG.md +37 -0
- trvdos-0.0.0/CMakeLists.txt +22 -0
- trvdos-0.0.0/CODE_OF_CONDUCT.md +136 -0
- trvdos-0.0.0/CONTRIBUTING.md +29 -0
- trvdos-0.0.0/LICENSE +21 -0
- trvdos-0.0.0/MANIFEST.in +6 -0
- trvdos-0.0.0/PKG-INFO +122 -0
- trvdos-0.0.0/README.md +100 -0
- trvdos-0.0.0/README_old.md +2 -0
- trvdos-0.0.0/compile.sh +8 -0
- trvdos-0.0.0/devtools/conda-envs/test_env.yaml +22 -0
- trvdos-0.0.0/docs/Makefile +20 -0
- trvdos-0.0.0/docs/README.md +24 -0
- trvdos-0.0.0/docs/make.bat +36 -0
- trvdos-0.0.0/docs/requirements.yaml +11 -0
- trvdos-0.0.0/docs/source/_static/README.md +29 -0
- trvdos-0.0.0/docs/source/_static/logo/mdakits-empty-favicon-template.svg +57 -0
- trvdos-0.0.0/docs/source/_static/logo/mdakits-empty-logo-template.svg +65 -0
- trvdos-0.0.0/docs/source/_static/logo/mdakits-placeholder-logo.png +0 -0
- trvdos-0.0.0/docs/source/_templates/README.md +14 -0
- trvdos-0.0.0/docs/source/api.rst +8 -0
- trvdos-0.0.0/docs/source/conf.py +197 -0
- trvdos-0.0.0/docs/source/getting_started.rst +4 -0
- trvdos-0.0.0/docs/source/index.rst +23 -0
- trvdos-0.0.0/dropbox-links.txt +2 -0
- trvdos-0.0.0/pyproject.toml +108 -0
- trvdos-0.0.0/readthedocs.yaml +24 -0
- trvdos-0.0.0/run.ipynb +122 -0
- trvdos-0.0.0/run.py +44 -0
- trvdos-0.0.0/trvdos/__init__.py +10 -0
- trvdos-0.0.0/trvdos/csrc/vdos.c +984 -0
- trvdos-0.0.0/trvdos/data/.run-NVE_test.trr_offsets.npz +0 -0
- trvdos-0.0.0/trvdos/data/README.md +17 -0
- trvdos-0.0.0/trvdos/data/__init__.py +0 -0
- trvdos-0.0.0/trvdos/data/files.py +19 -0
- trvdos-0.0.0/trvdos/data/mda.txt +45 -0
- trvdos-0.0.0/trvdos/example_api.py +3 -0
- trvdos-0.0.0/trvdos/tests/__init__.py +0 -0
- trvdos-0.0.0/trvdos/tests/conftest.py +20 -0
- trvdos-0.0.0/trvdos/tests/test_trvdos.py +33 -0
- trvdos-0.0.0/trvdos/tests/utils.py +77 -0
- trvdos-0.0.0/trvdos/vdos.py +439 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Expected behavior ##
|
|
8
|
+
|
|
9
|
+
<!-- A clear and concise description of what you want to do and what you think should happen. (Code to reproduce the behavior can be added below). -->
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Actual behavior ##
|
|
13
|
+
|
|
14
|
+
<!-- What happened instead. Add as much detail as you can. Include (copy and paste) stack traces and any output. -->
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## Code to reproduce the behavior ##
|
|
18
|
+
|
|
19
|
+
<!-- Show us how to reproduce the failure. If you can, use trajectory files from the test data. Use the code snipped below as a starting point. -->
|
|
20
|
+
|
|
21
|
+
``` python
|
|
22
|
+
import mda_3d_2pt
|
|
23
|
+
|
|
24
|
+
...
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Current environment ##
|
|
29
|
+
|
|
30
|
+
- Which version are you using? (run `python -c "import mda_3d_2pt; print(mda_3d_2pt.__version__)"`)
|
|
31
|
+
- Which version of Python (`python -V`)?
|
|
32
|
+
- Which operating system?
|
|
33
|
+
- What is the output of `pip list`?
|
|
34
|
+
- If you use conda, what is the output of `conda list`?
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Is your feature request related to a problem? ##
|
|
8
|
+
<!-- A clear and concise description of what the problem is. For example, I'm always frustrated when [...] -->
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Describe the solution you'd like ##
|
|
12
|
+
<!-- A description of what you want to happen. For example, I'd like to be able to do [...] -->
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Describe alternatives you've considered ##
|
|
16
|
+
<!-- A description of any alternative solutions or features you've considered or possible solutions that you've seen elsewhere. -->
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## Additional context ##
|
|
20
|
+
<!-- Add any other context or screenshots about the feature request here. -->
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
<!-- Does this PR fix an issue or relate to an existing discussion? Please link it below after "Fixes #" -->
|
|
3
|
+
|
|
4
|
+
Fixes #
|
|
5
|
+
|
|
6
|
+
Changes made in this Pull Request:
|
|
7
|
+
<!-- Summarise changes made with dot points below -->
|
|
8
|
+
-
|
|
9
|
+
-
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
PR Checklist
|
|
13
|
+
------------
|
|
14
|
+
- [ ] Tests?
|
|
15
|
+
- [ ] Docs?
|
|
16
|
+
- [ ] CHANGELOG updated?
|
|
17
|
+
- [ ] Issue raised/referenced?
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
name: GH Actions CI
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- main
|
|
6
|
+
pull_request:
|
|
7
|
+
branches:
|
|
8
|
+
- main
|
|
9
|
+
schedule:
|
|
10
|
+
# Weekly tests at midnight on Sundays run on main by default:
|
|
11
|
+
# Scheduled workflows run on the latest commit on the default or base branch.
|
|
12
|
+
# (from https://help.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule)
|
|
13
|
+
- cron: "0 0 * * 0"
|
|
14
|
+
|
|
15
|
+
concurrency:
|
|
16
|
+
# Specific group naming so CI is only cancelled
|
|
17
|
+
# within same PR or on merge to main
|
|
18
|
+
group: ${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}
|
|
19
|
+
cancel-in-progress: true
|
|
20
|
+
|
|
21
|
+
defaults:
|
|
22
|
+
run:
|
|
23
|
+
shell: bash -l {0}
|
|
24
|
+
|
|
25
|
+
jobs:
|
|
26
|
+
main-tests:
|
|
27
|
+
if: "github.repository == 'HeydenLabASU/mda_3d_2pt'"
|
|
28
|
+
runs-on: ${{ matrix.os }}
|
|
29
|
+
strategy:
|
|
30
|
+
fail-fast: false
|
|
31
|
+
matrix:
|
|
32
|
+
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
33
|
+
mdanalysis-version: ["latest", "develop"]
|
|
34
|
+
python-version: ["3.11", "3.12", "3.13", "3.14"]
|
|
35
|
+
|
|
36
|
+
steps:
|
|
37
|
+
- uses: actions/checkout@v4
|
|
38
|
+
|
|
39
|
+
- name: Build information
|
|
40
|
+
run: |
|
|
41
|
+
uname -a
|
|
42
|
+
df -h
|
|
43
|
+
ulimit -a
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# More info on options: https://github.com/conda-incubator/setup-miniconda
|
|
47
|
+
- name: Install conda dependencies
|
|
48
|
+
uses: conda-incubator/setup-miniconda@v4
|
|
49
|
+
with:
|
|
50
|
+
python-version: ${{ matrix.python-version }}
|
|
51
|
+
environment-file: devtools/conda-envs/test_env.yaml
|
|
52
|
+
add-pip-as-python-dependency: true
|
|
53
|
+
|
|
54
|
+
miniforge-version: "latest"
|
|
55
|
+
use-mamba: true
|
|
56
|
+
channels: conda-forge
|
|
57
|
+
|
|
58
|
+
activate-environment: mda_3d_2pt-test
|
|
59
|
+
auto-update-conda: true
|
|
60
|
+
auto-activate-base: false
|
|
61
|
+
show-channel-urls: true
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
- name: Install MDAnalysis version
|
|
65
|
+
uses: MDAnalysis/install-mdanalysis@main
|
|
66
|
+
with:
|
|
67
|
+
version: ${{ matrix.mdanalysis-version }}
|
|
68
|
+
install-tests: false
|
|
69
|
+
installer: conda
|
|
70
|
+
shell: bash -l {0}
|
|
71
|
+
|
|
72
|
+
- name: Install package
|
|
73
|
+
run: |
|
|
74
|
+
python --version
|
|
75
|
+
python -m pip install . --no-deps
|
|
76
|
+
|
|
77
|
+
- name: Python information
|
|
78
|
+
run: |
|
|
79
|
+
which python
|
|
80
|
+
which pip
|
|
81
|
+
pip list
|
|
82
|
+
|
|
83
|
+
conda info
|
|
84
|
+
conda list
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
- name: Run tests
|
|
88
|
+
run: |
|
|
89
|
+
pytest -n 2 -v --cov=mda_3d_2pt --cov-report=xml --color=yes mda_3d_2pt/tests/
|
|
90
|
+
|
|
91
|
+
- name: codecov
|
|
92
|
+
if: github.repository == 'HeydenLabASU/mda_3d_2pt' && github.event_name != 'schedule'
|
|
93
|
+
uses: codecov/codecov-action@v5
|
|
94
|
+
with:
|
|
95
|
+
file: coverage.xml
|
|
96
|
+
name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}
|
|
97
|
+
verbose: True
|
|
98
|
+
# to upload coverage reports, set a secret called CODECOV_TOKEN
|
|
99
|
+
# in the repository settings
|
|
100
|
+
# (Obtain this from the Codecov website after setting up the repository there)
|
|
101
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
102
|
+
# To fail the CI if there's an error, keep this set to true
|
|
103
|
+
# If repository forks need to run CI, you may need to set this to false
|
|
104
|
+
# Forks can't access the CODECOV_TOKEN secret,
|
|
105
|
+
# and a failed upload registers as an error
|
|
106
|
+
fail_ci_if_error: true
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
pylint_check:
|
|
110
|
+
if: "github.repository == 'HeydenLabASU/mda_3d_2pt'"
|
|
111
|
+
runs-on: ubuntu-latest
|
|
112
|
+
|
|
113
|
+
steps:
|
|
114
|
+
- uses: actions/checkout@v4
|
|
115
|
+
|
|
116
|
+
- name: Set up Python
|
|
117
|
+
uses: actions/setup-python@v5
|
|
118
|
+
with:
|
|
119
|
+
python-version: "3.12"
|
|
120
|
+
|
|
121
|
+
- name: Install Pylint
|
|
122
|
+
run: |
|
|
123
|
+
which pip
|
|
124
|
+
which python
|
|
125
|
+
pip install pylint mdanalysis
|
|
126
|
+
|
|
127
|
+
- name: Run Pylint
|
|
128
|
+
env:
|
|
129
|
+
PYLINTRC: .pylintrc
|
|
130
|
+
run: |
|
|
131
|
+
pylint .
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
pypi_check:
|
|
135
|
+
if: "github.repository == 'HeydenLabASU/mda_3d_2pt'"
|
|
136
|
+
runs-on: ubuntu-latest
|
|
137
|
+
|
|
138
|
+
steps:
|
|
139
|
+
- uses: actions/checkout@v4
|
|
140
|
+
|
|
141
|
+
- name: Set up Python
|
|
142
|
+
uses: actions/setup-python@v5
|
|
143
|
+
with:
|
|
144
|
+
python-version: "3.12"
|
|
145
|
+
|
|
146
|
+
- name: Install dependencies
|
|
147
|
+
run: |
|
|
148
|
+
pip install pipx twine
|
|
149
|
+
|
|
150
|
+
- name: Build package
|
|
151
|
+
run: |
|
|
152
|
+
python -m pipx run build --sdist
|
|
153
|
+
|
|
154
|
+
- name: Check package build
|
|
155
|
+
run: |
|
|
156
|
+
DISTRIBUTION=$(ls -t1 dist/mda_3d_2pt-*.tar.gz | head -n 1)
|
|
157
|
+
test -n "${DISTRIBUTION}" || { echo "no distribution dist/mda_3d_2pt-*.tar.gz found"; exit 1; }
|
|
158
|
+
echo "twine check $DISTRIBUTION"
|
|
159
|
+
twine check $DISTRIBUTION
|
trvdos-0.0.0/.gitignore
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# Compiled source #
|
|
2
|
+
###################
|
|
3
|
+
*.com
|
|
4
|
+
*.class
|
|
5
|
+
*.dll
|
|
6
|
+
*.exe
|
|
7
|
+
*.o
|
|
8
|
+
*.so
|
|
9
|
+
|
|
10
|
+
# Data files #
|
|
11
|
+
##################
|
|
12
|
+
*.dat
|
|
13
|
+
*.trr
|
|
14
|
+
*.tpr
|
|
15
|
+
|
|
16
|
+
# Backup files #
|
|
17
|
+
###################
|
|
18
|
+
*.backup
|
|
19
|
+
backup/*
|
|
20
|
+
old/*
|
|
21
|
+
legacy/
|
|
22
|
+
/__pycache__
|
|
23
|
+
/__pycache__
|
|
24
|
+
|
|
25
|
+
# Byte-compiled / optimized / DLL files
|
|
26
|
+
__pycache__/
|
|
27
|
+
*.py[cod]
|
|
28
|
+
*$py.class
|
|
29
|
+
|
|
30
|
+
# C extensions
|
|
31
|
+
*.so
|
|
32
|
+
|
|
33
|
+
# Distribution / packaging
|
|
34
|
+
.Python
|
|
35
|
+
env/
|
|
36
|
+
build/
|
|
37
|
+
develop-eggs/
|
|
38
|
+
dist/
|
|
39
|
+
downloads/
|
|
40
|
+
eggs/
|
|
41
|
+
.eggs/
|
|
42
|
+
lib/
|
|
43
|
+
lib64/
|
|
44
|
+
parts/
|
|
45
|
+
sdist/
|
|
46
|
+
var/
|
|
47
|
+
wheels/
|
|
48
|
+
*.egg-info/
|
|
49
|
+
.installed.cfg
|
|
50
|
+
*.egg
|
|
51
|
+
|
|
52
|
+
# PyInstaller
|
|
53
|
+
# Usually these files are written by a python script from a template
|
|
54
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
55
|
+
*.manifest
|
|
56
|
+
*.spec
|
|
57
|
+
|
|
58
|
+
# Installer logs
|
|
59
|
+
pip-log.txt
|
|
60
|
+
pip-delete-this-directory.txt
|
|
61
|
+
|
|
62
|
+
# Unit test / coverage reports
|
|
63
|
+
htmlcov/
|
|
64
|
+
.tox/
|
|
65
|
+
.coverage
|
|
66
|
+
.coverage.*
|
|
67
|
+
.cache
|
|
68
|
+
.pytest_cache
|
|
69
|
+
nosetests.xml
|
|
70
|
+
coverage.xml
|
|
71
|
+
*.cover
|
|
72
|
+
.hypothesis/
|
|
73
|
+
|
|
74
|
+
# Translations
|
|
75
|
+
*.mo
|
|
76
|
+
*.pot
|
|
77
|
+
|
|
78
|
+
# Django stuff:
|
|
79
|
+
*.log
|
|
80
|
+
local_settings.py
|
|
81
|
+
|
|
82
|
+
# Flask stuff:
|
|
83
|
+
instance/
|
|
84
|
+
.webassets-cache
|
|
85
|
+
|
|
86
|
+
# Scrapy stuff:
|
|
87
|
+
.scrapy
|
|
88
|
+
|
|
89
|
+
# Sphinx documentation
|
|
90
|
+
docs/_build/
|
|
91
|
+
|
|
92
|
+
# PyBuilder
|
|
93
|
+
target/
|
|
94
|
+
|
|
95
|
+
# Jupyter Notebook
|
|
96
|
+
.ipynb_checkpoints
|
|
97
|
+
|
|
98
|
+
# pyenv
|
|
99
|
+
.python-version
|
|
100
|
+
|
|
101
|
+
# celery beat schedule file
|
|
102
|
+
celerybeat-schedule
|
|
103
|
+
|
|
104
|
+
# SageMath parsed files
|
|
105
|
+
*.sage.py
|
|
106
|
+
|
|
107
|
+
# dotenv
|
|
108
|
+
.env
|
|
109
|
+
|
|
110
|
+
# virtualenv
|
|
111
|
+
.venv
|
|
112
|
+
venv/
|
|
113
|
+
ENV/
|
|
114
|
+
|
|
115
|
+
# Spyder project settings
|
|
116
|
+
.spyderproject
|
|
117
|
+
.spyproject
|
|
118
|
+
|
|
119
|
+
# VS Code
|
|
120
|
+
.vscode/
|
|
121
|
+
|
|
122
|
+
# Rope project settings
|
|
123
|
+
.ropeproject
|
|
124
|
+
|
|
125
|
+
# mkdocs documentation
|
|
126
|
+
/site
|
|
127
|
+
|
|
128
|
+
# mypy
|
|
129
|
+
.mypy_cache/
|
|
130
|
+
.DS_Store
|
|
131
|
+
|
|
132
|
+
# poetry
|
|
133
|
+
poetry.lock
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
# To install the git pre-commit hook run:
|
|
3
|
+
# pre-commit install
|
|
4
|
+
# To update the pre-commit hooks run:
|
|
5
|
+
# pre-commit install-hooks
|
|
6
|
+
exclude: '^(\.tox|ci/templates|\.bumpversion\.cfg)(/|$)'
|
|
7
|
+
repos:
|
|
8
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
9
|
+
rev: master
|
|
10
|
+
hooks:
|
|
11
|
+
- id: trailing-whitespace
|
|
12
|
+
- id: end-of-file-fixer
|
|
13
|
+
- id: debug-statements
|
|
14
|
+
- repo: https://github.com/timothycrosley/isort
|
|
15
|
+
rev: master
|
|
16
|
+
hooks:
|
|
17
|
+
- id: isort
|
|
18
|
+
- repo: https://gitlab.com/pycqa/flake8
|
|
19
|
+
rev: master
|
|
20
|
+
hooks:
|
|
21
|
+
- id: flake8
|