waterEntropy 2.1.0__tar.gz → 2.3.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.
- waterentropy-2.3.0/.github/renovate.json +8 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/.github/workflows/ci.yml +6 -6
- {waterentropy-2.1.0 → waterentropy-2.3.0}/.github/workflows/release.yml +10 -10
- {waterentropy-2.1.0 → waterentropy-2.3.0}/.gitignore +4 -0
- waterentropy-2.3.0/.pre-commit-config.yaml +41 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/PKG-INFO +22 -19
- {waterentropy-2.1.0 → waterentropy-2.3.0}/docs/source/conf.py +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/docs/source/index.rst +1 -1
- {waterentropy-2.1.0 → waterentropy-2.3.0}/docs/source/user_guide/serial.rst +8 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/notebooks/interfacial_water_entropy.ipynb +8 -3
- {waterentropy-2.1.0 → waterentropy-2.3.0}/pyproject.toml +28 -18
- {waterentropy-2.1.0 → waterentropy-2.3.0}/tests/__init__.py +1 -1
- {waterentropy-2.1.0 → waterentropy-2.3.0}/tests/analysis/test_RAD.py +16 -4
- waterentropy-2.3.0/tests/input_files/__init__.py +3 -0
- waterentropy-2.3.0/tests/maths/test_transformations.py +321 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/tests/maths/test_trig.py +1 -1
- waterentropy-2.3.0/tests/recipes/test_bulk_water.py +128 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/tests/recipes/test_interfacial_solvent.py +63 -41
- waterentropy-2.3.0/tests/test_cli_logging.py +61 -0
- waterentropy-2.3.0/tests/utils/__init__.py +3 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/tests/utils/test_dask_clusters.py +2 -2
- {waterentropy-2.1.0 → waterentropy-2.3.0}/tests/utils/test_selections.py +23 -2
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/__init__.py +1 -1
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/analysis/HB.py +8 -6
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/analysis/HB_labels.py +39 -76
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/analysis/shell_labels.py +72 -1
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/analysis/shells.py +2 -0
- waterentropy-2.3.0/waterEntropy/cli/runBulk.py +125 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/cli/runWaterEntropy.py +16 -22
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/cli/run_find_Nc.py +6 -10
- waterentropy-2.3.0/waterEntropy/entropy/__init__.py +0 -0
- waterentropy-2.3.0/waterEntropy/entropy/orientations.py +618 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/entropy/vibrations.py +3 -2
- waterentropy-2.3.0/waterEntropy/maths/__init__.py +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/maths/transformations.py +60 -4
- waterentropy-2.3.0/waterEntropy/recipes/__init__.py +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/recipes/bulk_water.py +40 -29
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/recipes/forces_torques.py +4 -2
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/recipes/interfacial_solvent.py +84 -49
- waterentropy-2.3.0/waterEntropy/utils/__init__.py +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/utils/selections.py +9 -3
- waterentropy-2.1.0/.pre-commit-config.yaml +0 -40
- waterentropy-2.1.0/tests/input_files/__init__.py +0 -4
- waterentropy-2.1.0/tests/recipes/test_bulk_water.py +0 -92
- waterentropy-2.1.0/tests/utils/__init__.py +0 -4
- waterentropy-2.1.0/waterEntropy/entropy/__init__.py +0 -1
- waterentropy-2.1.0/waterEntropy/entropy/orientations.py +0 -358
- waterentropy-2.1.0/waterEntropy/maths/__init__.py +0 -1
- waterentropy-2.1.0/waterEntropy/recipes/__init__.py +0 -1
- waterentropy-2.1.0/waterEntropy/utils/__init__.py +0 -1
- {waterentropy-2.1.0 → waterentropy-2.3.0}/.github/dependabot.yml +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/.readthedocs.yml +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/LICENSE +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/README.md +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/docs/.gitignore +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/docs/Makefile +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/docs/source/images/ccpbiosim-logo-white-background.png +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/docs/source/images/waterentropy_logo_grey.png +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/docs/source/user_guide/hpc.rst +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/docs/source/user_guide/parallel.rst +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/example_inputs/lysozyme_solution/system.gro +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/example_inputs/lysozyme_solution/system.tpr +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/example_inputs/lysozyme_solution/system.trr +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/tests/input_files/amber/arginine_solution/README.md +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/tests/input_files/amber/arginine_solution/system.nc +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/tests/input_files/amber/arginine_solution/system.prmtop +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/tests/input_files/gromacs/aspirin_solution/README.md +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/tests/input_files/gromacs/aspirin_solution/system.gro +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/tests/input_files/gromacs/aspirin_solution/system.prmtop +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/tests/input_files/gromacs/aspirin_solution/system.trr +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/tests/input_files/load_inputs.py +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/analysis/RAD.py +1 -1
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/analysis/__init__.py +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/entropy/convariances.py +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/maths/trig.py +0 -0
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/utils/dask_clusters.py +1 -1
- {waterentropy-2.1.0 → waterentropy-2.3.0}/waterEntropy/utils/helpers.py +0 -0
|
@@ -15,9 +15,9 @@ jobs:
|
|
|
15
15
|
python-version: ["3.11", "3.12", "3.13", "3.14"]
|
|
16
16
|
timeout-minutes: 30
|
|
17
17
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
18
|
+
- uses: actions/checkout@v7
|
|
19
19
|
- name: Set up Python ${{ matrix.python-version }}
|
|
20
|
-
uses: actions/setup-python@
|
|
20
|
+
uses: actions/setup-python@v7
|
|
21
21
|
with:
|
|
22
22
|
python-version: ${{ matrix.python-version }}
|
|
23
23
|
|
|
@@ -49,9 +49,9 @@ jobs:
|
|
|
49
49
|
runs-on: ubuntu-latest
|
|
50
50
|
timeout-minutes: 15
|
|
51
51
|
steps:
|
|
52
|
-
- uses: actions/checkout@
|
|
52
|
+
- uses: actions/checkout@v7
|
|
53
53
|
- name: Set up Python 3.13
|
|
54
|
-
uses: actions/setup-python@
|
|
54
|
+
uses: actions/setup-python@v7
|
|
55
55
|
with:
|
|
56
56
|
python-version: 3.13
|
|
57
57
|
- name: Install python dependencies
|
|
@@ -65,9 +65,9 @@ jobs:
|
|
|
65
65
|
runs-on: ubuntu-latest
|
|
66
66
|
timeout-minutes: 15
|
|
67
67
|
steps:
|
|
68
|
-
- uses: actions/checkout@
|
|
68
|
+
- uses: actions/checkout@v7
|
|
69
69
|
- name: Set up Python 3.13
|
|
70
|
-
uses: actions/setup-python@
|
|
70
|
+
uses: actions/setup-python@v7
|
|
71
71
|
with:
|
|
72
72
|
python-version: 3.13
|
|
73
73
|
- name: Install python dependencies
|
|
@@ -19,10 +19,10 @@ jobs:
|
|
|
19
19
|
steps:
|
|
20
20
|
- name: checkout repository
|
|
21
21
|
id: repo
|
|
22
|
-
uses: actions/checkout@
|
|
22
|
+
uses: actions/checkout@v7
|
|
23
23
|
|
|
24
24
|
- name: get python 3.11.6
|
|
25
|
-
uses: actions/setup-python@
|
|
25
|
+
uses: actions/setup-python@v7
|
|
26
26
|
with:
|
|
27
27
|
python-version: 3.11.6
|
|
28
28
|
|
|
@@ -47,14 +47,14 @@ jobs:
|
|
|
47
47
|
steps:
|
|
48
48
|
|
|
49
49
|
- name: checkout
|
|
50
|
-
uses: actions/checkout@
|
|
50
|
+
uses: actions/checkout@v7
|
|
51
51
|
|
|
52
52
|
- name: Change version in repo
|
|
53
53
|
run: sed -i "s/__version__ =.*/__version__ = \"${{ github.event.inputs.version }}\"/g" waterEntropy/__init__.py
|
|
54
54
|
|
|
55
55
|
- name: send PR
|
|
56
56
|
id: pr_id
|
|
57
|
-
uses: peter-evans/create-pull-request@v8.1.
|
|
57
|
+
uses: peter-evans/create-pull-request@v8.1.1
|
|
58
58
|
with:
|
|
59
59
|
commit-message: Update version to ${{ github.event.inputs.version }}
|
|
60
60
|
branch: version-update
|
|
@@ -78,7 +78,7 @@ jobs:
|
|
|
78
78
|
runs-on: ubuntu-24.04
|
|
79
79
|
steps:
|
|
80
80
|
- name: Checkout repository
|
|
81
|
-
uses: actions/checkout@
|
|
81
|
+
uses: actions/checkout@v7
|
|
82
82
|
with:
|
|
83
83
|
ref: main
|
|
84
84
|
|
|
@@ -96,7 +96,7 @@ jobs:
|
|
|
96
96
|
steps:
|
|
97
97
|
|
|
98
98
|
- name: create release
|
|
99
|
-
uses: softprops/action-gh-release@
|
|
99
|
+
uses: softprops/action-gh-release@v3.0.3
|
|
100
100
|
with:
|
|
101
101
|
name: v${{ github.event.inputs.version }}
|
|
102
102
|
generate_release_notes: true
|
|
@@ -109,23 +109,23 @@ jobs:
|
|
|
109
109
|
steps:
|
|
110
110
|
|
|
111
111
|
- name: checkout
|
|
112
|
-
uses: actions/checkout@
|
|
112
|
+
uses: actions/checkout@v7
|
|
113
113
|
with:
|
|
114
114
|
ref: main
|
|
115
115
|
|
|
116
116
|
- name: get python 3.11.6
|
|
117
|
-
uses: actions/setup-python@
|
|
117
|
+
uses: actions/setup-python@v7
|
|
118
118
|
with:
|
|
119
119
|
python-version: 3.11.6
|
|
120
120
|
|
|
121
121
|
- name: install flit
|
|
122
122
|
run: |
|
|
123
123
|
python -m pip install --upgrade pip
|
|
124
|
-
python -m pip install flit
|
|
124
|
+
python -m pip install "flit>=4,<5" "flit_core>=4,<5"
|
|
125
125
|
|
|
126
126
|
- name: build and publish
|
|
127
127
|
run: |
|
|
128
|
-
flit publish
|
|
128
|
+
flit publish --use-vcs
|
|
129
129
|
env:
|
|
130
130
|
FLIT_USERNAME: __token__
|
|
131
131
|
FLIT_PASSWORD: ${{ secrets.pypi_token }}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Install pre-commit hooks via:
|
|
2
|
+
# pre-commit install
|
|
3
|
+
exclude: ".*.gro|.*.top|.*.trr|.*.frc|.*.pdb|.*.mdcrd|.*.gz|.*.prmtop|.*.lmp|runWaterEntropy.py"
|
|
4
|
+
|
|
5
|
+
repos:
|
|
6
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
7
|
+
rev: v0.17.3
|
|
8
|
+
hooks:
|
|
9
|
+
- id: ruff-check
|
|
10
|
+
args: [--fix]
|
|
11
|
+
- id: ruff-format
|
|
12
|
+
|
|
13
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
14
|
+
rev: v6.0.0
|
|
15
|
+
hooks:
|
|
16
|
+
- id: check-added-large-files
|
|
17
|
+
- id: check-merge-conflict
|
|
18
|
+
- id: check-yaml
|
|
19
|
+
exclude: ^conda-recipe/meta\.yaml$
|
|
20
|
+
- id: check-toml
|
|
21
|
+
- id: check-case-conflict
|
|
22
|
+
- id: check-ast
|
|
23
|
+
- id: end-of-file-fixer
|
|
24
|
+
- id: trailing-whitespace
|
|
25
|
+
|
|
26
|
+
- repo: https://github.com/rstcheck/rstcheck
|
|
27
|
+
rev: v6.3.0
|
|
28
|
+
hooks:
|
|
29
|
+
- id: rstcheck
|
|
30
|
+
name: rstcheck (docstrings only)
|
|
31
|
+
files: \.py$
|
|
32
|
+
args: ["--report-level", "warning"]
|
|
33
|
+
|
|
34
|
+
- repo: local
|
|
35
|
+
hooks:
|
|
36
|
+
- id: sphinx-docs
|
|
37
|
+
name: sphinx-build (pre-push, warnings as errors)
|
|
38
|
+
entry: bash -lc 'make -C docs clean && make -C docs html SPHINXOPTS="-W --keep-going"'
|
|
39
|
+
language: system
|
|
40
|
+
pass_filenames: false
|
|
41
|
+
stages: [pre-push]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: waterEntropy
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: Python package for calculating interfacial water entropy from molecular dynamics simulations.
|
|
5
5
|
Keywords: water,entropy,molecular dynamics,forces
|
|
6
6
|
Author-email: Jas Kalayan <jas.kalayan@stfc.ac.uk>
|
|
@@ -12,31 +12,34 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
12
12
|
Classifier: Natural Language :: English
|
|
13
13
|
Classifier: Development Status :: 3 - Alpha
|
|
14
14
|
License-File: LICENSE
|
|
15
|
-
Requires-Dist: mdanalysis>=2.
|
|
16
|
-
Requires-Dist: numpy
|
|
17
|
-
Requires-Dist: distributed
|
|
18
|
-
Requires-Dist: dask
|
|
19
|
-
Requires-Dist: dask-jobqueue
|
|
20
|
-
Requires-Dist: psutil
|
|
21
|
-
Requires-Dist: sphinx ; extra == "docs"
|
|
22
|
-
Requires-Dist: sphinx_rtd_theme ; extra == "docs"
|
|
23
|
-
Requires-Dist: sphinxcontrib-contentui ; extra == "docs"
|
|
24
|
-
Requires-Dist: sphinxcontrib-details-directive ; extra == "docs"
|
|
25
|
-
Requires-Dist: sphinx_copybutton ; extra == "docs"
|
|
26
|
-
Requires-Dist: furo ; extra == "docs"
|
|
27
|
-
Requires-Dist: markupsafe
|
|
28
|
-
Requires-Dist: pre-commit
|
|
29
|
-
Requires-Dist:
|
|
15
|
+
Requires-Dist: mdanalysis>=2.11.0,<3.0
|
|
16
|
+
Requires-Dist: numpy>=2.3.2,<2.5.0
|
|
17
|
+
Requires-Dist: distributed>=2025.4.0,<2027.1.0
|
|
18
|
+
Requires-Dist: dask>=2025.4.0,<2027.1.0
|
|
19
|
+
Requires-Dist: dask-jobqueue>=0.9.0,<1.0
|
|
20
|
+
Requires-Dist: psutil>=5.9.4,<8.0
|
|
21
|
+
Requires-Dist: sphinx>=9,<10 ; extra == "docs"
|
|
22
|
+
Requires-Dist: sphinx_rtd_theme>=3.1.0,<4 ; extra == "docs"
|
|
23
|
+
Requires-Dist: sphinxcontrib-contentui>=0.2.5,<1 ; extra == "docs"
|
|
24
|
+
Requires-Dist: sphinxcontrib-details-directive>=0.1.0,<1 ; extra == "docs"
|
|
25
|
+
Requires-Dist: sphinx_copybutton>=0.5.2,<1 ; extra == "docs"
|
|
26
|
+
Requires-Dist: furo==2025.12.19 ; extra == "docs"
|
|
27
|
+
Requires-Dist: markupsafe>=3.0.4,<4 ; extra == "docs"
|
|
28
|
+
Requires-Dist: pre-commit>=4.5,<5.0 ; extra == "pre-commit"
|
|
29
|
+
Requires-Dist: ruff>=0.15.2,<1.0 ; extra == "pre-commit"
|
|
30
|
+
Requires-Dist: pylint>=4.0,<5.0 ; extra == "pre-commit"
|
|
31
|
+
Requires-Dist: rstcheck>=6.2,<7.0 ; extra == "pre-commit"
|
|
30
32
|
Requires-Dist: pgtest==1.3.2 ; extra == "testing"
|
|
31
|
-
Requires-Dist: wheel==0.
|
|
33
|
+
Requires-Dist: wheel==0.46.2 ; extra == "testing"
|
|
32
34
|
Requires-Dist: coverage[toml] ; extra == "testing"
|
|
33
|
-
Requires-Dist: pytest==
|
|
35
|
+
Requires-Dist: pytest==9.0.3 ; extra == "testing"
|
|
34
36
|
Requires-Dist: pytest-cov==5.0.0 ; extra == "testing"
|
|
35
37
|
Requires-Dist: pytest-sugar==1.0.0 ; extra == "testing"
|
|
36
38
|
Project-URL: Source, https://github.com/jkalayan/waterEntropy
|
|
37
39
|
Provides-Extra: docs
|
|
38
40
|
Provides-Extra: pre-commit
|
|
39
41
|
Provides-Extra: testing
|
|
42
|
+
Import-Name: waterEntropy
|
|
40
43
|
|
|
41
44
|
[](https://waterentropy.readthedocs.io/en/latest/?badge=latest)
|
|
42
45
|
[](https://coveralls.io/github/jkalayan/waterEntropy?branch=main)
|
|
File without changes
|
|
@@ -11,6 +11,14 @@ Here's how to use waterEntropy on the command-line using the ``runWaterEntropy.p
|
|
|
11
11
|
|
|
12
12
|
Topology and trajectory files are available in the ``tests/input_files`` directory.
|
|
13
13
|
|
|
14
|
+
For single-united-atom molecules such as water, principal-axis signs are fixed
|
|
15
|
+
using the ordered vectors from the heavy atom to the other atoms and their
|
|
16
|
+
cross products. Keep atom ordering consistent across molecules and trajectories.
|
|
17
|
+
This convention changes force and torque covariances and vibrational entropies
|
|
18
|
+
relative to earlier versions, which could depend on the numerical library.
|
|
19
|
+
Molecules with degenerate moments of inertia or geometry that cannot determine
|
|
20
|
+
all axis directions are rejected rather than assigned an arbitrary frame.
|
|
21
|
+
|
|
14
22
|
Here's how to use waterEntropy via the API:
|
|
15
23
|
|
|
16
24
|
.. code-block:: Python
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"outputs": [],
|
|
40
40
|
"source": [
|
|
41
41
|
"from MDAnalysis import Universe\n",
|
|
42
|
+
"\n",
|
|
42
43
|
"import waterEntropy.recipes.interfacial_solvent as GetSolvent"
|
|
43
44
|
]
|
|
44
45
|
},
|
|
@@ -74,7 +75,7 @@
|
|
|
74
75
|
"metadata": {},
|
|
75
76
|
"outputs": [],
|
|
76
77
|
"source": [
|
|
77
|
-
"start, end, step = 0, 1, 1
|
|
78
|
+
"start, end, step = 0, 1, 1 # this will select frame 0"
|
|
78
79
|
]
|
|
79
80
|
},
|
|
80
81
|
{
|
|
@@ -90,7 +91,11 @@
|
|
|
90
91
|
"metadata": {},
|
|
91
92
|
"outputs": [],
|
|
92
93
|
"source": [
|
|
93
|
-
"Sorient_dict, covariances, vibrations, frame_solvent_indices =
|
|
94
|
+
"Sorient_dict, covariances, vibrations, frame_solvent_indices = (\n",
|
|
95
|
+
" GetSolvent.get_interfacial_water_orient_entropy(\n",
|
|
96
|
+
" u, start, end, step, temperature=298\n",
|
|
97
|
+
" )\n",
|
|
98
|
+
")"
|
|
94
99
|
]
|
|
95
100
|
},
|
|
96
101
|
{
|
|
@@ -106,8 +111,8 @@
|
|
|
106
111
|
"metadata": {},
|
|
107
112
|
"outputs": [],
|
|
108
113
|
"source": [
|
|
109
|
-
"import waterEntropy.entropy.vibrations as VIB\n",
|
|
110
114
|
"import waterEntropy.entropy.orientations as OR\n",
|
|
115
|
+
"import waterEntropy.entropy.vibrations as VIB\n",
|
|
111
116
|
"\n",
|
|
112
117
|
"OR.print_Sorient_dicts(Sorient_dict)\n",
|
|
113
118
|
"VIB.print_Svib_data(vibrations, covariances)"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[build-system]
|
|
2
2
|
# build the package with [flit](https://flit.readthedocs.io)
|
|
3
|
-
requires = ["flit_core >=
|
|
3
|
+
requires = ["flit_core >=4,<5"]
|
|
4
4
|
build-backend = "flit_core.buildapi"
|
|
5
5
|
|
|
6
6
|
[project]
|
|
@@ -21,12 +21,12 @@ classifiers = [
|
|
|
21
21
|
keywords = ["water", "entropy", "molecular dynamics", "forces"]
|
|
22
22
|
requires-python = ">=3.11"
|
|
23
23
|
dependencies = [
|
|
24
|
-
"mdanalysis>=2.
|
|
25
|
-
"numpy
|
|
26
|
-
"distributed
|
|
27
|
-
"dask
|
|
28
|
-
"dask-jobqueue
|
|
29
|
-
"psutil
|
|
24
|
+
"mdanalysis>=2.11.0,<3.0",
|
|
25
|
+
"numpy>=2.3.2,<2.5.0",
|
|
26
|
+
"distributed>=2025.4.0,<2027.1.0",
|
|
27
|
+
"dask>=2025.4.0,<2027.1.0",
|
|
28
|
+
"dask-jobqueue>=0.9.0,<1.0",
|
|
29
|
+
"psutil>=5.9.4,<8.0",
|
|
30
30
|
]
|
|
31
31
|
|
|
32
32
|
[project.urls]
|
|
@@ -35,24 +35,26 @@ Source = "https://github.com/jkalayan/waterEntropy"
|
|
|
35
35
|
[project.optional-dependencies]
|
|
36
36
|
testing = [
|
|
37
37
|
"pgtest==1.3.2",
|
|
38
|
-
"wheel==0.
|
|
38
|
+
"wheel==0.46.2",
|
|
39
39
|
"coverage[toml]",
|
|
40
|
-
"pytest==
|
|
40
|
+
"pytest==9.0.3",
|
|
41
41
|
"pytest-cov==5.0.0",
|
|
42
42
|
"pytest-sugar==1.0.0"
|
|
43
43
|
]
|
|
44
44
|
pre-commit = [
|
|
45
|
-
"pre-commit
|
|
46
|
-
"
|
|
45
|
+
"pre-commit>=4.5,<5.0",
|
|
46
|
+
"ruff>=0.15.2,<1.0",
|
|
47
|
+
"pylint>=4.0,<5.0",
|
|
48
|
+
"rstcheck>=6.2,<7.0"
|
|
47
49
|
]
|
|
48
50
|
docs = [
|
|
49
|
-
"sphinx",
|
|
50
|
-
"sphinx_rtd_theme",
|
|
51
|
-
"sphinxcontrib-contentui",
|
|
52
|
-
"sphinxcontrib-details-directive",
|
|
53
|
-
"sphinx_copybutton",
|
|
54
|
-
"furo",
|
|
55
|
-
"markupsafe
|
|
51
|
+
"sphinx>=9,<10",
|
|
52
|
+
"sphinx_rtd_theme>=3.1.0,<4",
|
|
53
|
+
"sphinxcontrib-contentui>=0.2.5,<1",
|
|
54
|
+
"sphinxcontrib-details-directive>=0.1.0,<1",
|
|
55
|
+
"sphinx_copybutton>=0.5.2,<1",
|
|
56
|
+
"furo==2025.12.19",
|
|
57
|
+
"markupsafe>=3.0.4,<4"
|
|
56
58
|
]
|
|
57
59
|
|
|
58
60
|
[project.scripts]
|
|
@@ -62,6 +64,14 @@ waterShells = "waterEntropy.cli.run_find_Nc:main"
|
|
|
62
64
|
[tool.flit.module]
|
|
63
65
|
name = "waterEntropy"
|
|
64
66
|
|
|
67
|
+
[tool.ruff.lint.per-file-ignores]
|
|
68
|
+
# Preserve existing public package and module names.
|
|
69
|
+
"waterEntropy/**/__init__.py" = ["N999"]
|
|
70
|
+
"waterEntropy/__init__.py" = ["N999"]
|
|
71
|
+
"waterEntropy/analysis/HB.py" = ["N999"]
|
|
72
|
+
"waterEntropy/analysis/HB_labels.py" = ["N999"]
|
|
73
|
+
"waterEntropy/analysis/RAD.py" = ["N999"]
|
|
74
|
+
|
|
65
75
|
[tool.pylint.format]
|
|
66
76
|
max-line-length = 125
|
|
67
77
|
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
"""
|
|
1
|
+
"""Tests for waterEntropy RAD functions in neighbours."""
|
|
2
2
|
|
|
3
3
|
import pytest
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import waterEntropy.analysis.HB as HBond
|
|
6
6
|
import waterEntropy.analysis.RAD as RADShell
|
|
7
7
|
import waterEntropy.analysis.shell_labels as RADLabels
|
|
8
|
-
from waterEntropy.analysis.shells import ShellCollection
|
|
9
8
|
import waterEntropy.maths.trig as Trig
|
|
10
|
-
from waterEntropy.recipes.interfacial_solvent import find_interfacial_solvent
|
|
11
9
|
import waterEntropy.utils.selections as Selections
|
|
10
|
+
from tests.input_files import load_inputs
|
|
11
|
+
from waterEntropy.analysis.shells import ShellCollection
|
|
12
|
+
from waterEntropy.recipes.interfacial_solvent import find_interfacial_solvent
|
|
12
13
|
|
|
13
14
|
# get mda universe for arginine in solution
|
|
14
15
|
system = load_inputs.get_amber_arginine_soln_universe()
|
|
@@ -86,6 +87,17 @@ def test_get_RAD_shell():
|
|
|
86
87
|
"2_WAT",
|
|
87
88
|
]
|
|
88
89
|
|
|
90
|
+
# find list of nearest solutes
|
|
91
|
+
nonlikes = RADLabels.get_nonlike_list(shell, system)
|
|
92
|
+
assert list(nonlikes) == [29]
|
|
93
|
+
|
|
94
|
+
# Find HBing in the shell and strongest HB
|
|
95
|
+
HBs = HBond.HBCollection()
|
|
96
|
+
HBond.get_shell_HBs(shell, system, HBs, shells)
|
|
97
|
+
strongest_HB = RADLabels.get_strongest_HB(solvent_UA.index, system, HBs)
|
|
98
|
+
assert strongest_HB[0].index == 1228
|
|
99
|
+
assert strongest_HB[1] == pytest.approx(-0.09501820357260474)
|
|
100
|
+
|
|
89
101
|
|
|
90
102
|
def test_find_interfacial_solvent():
|
|
91
103
|
"""Test the find interfacial solvent function"""
|