AdsorPy 1.1.4__tar.gz → 1.2.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.
- adsorpy-1.2.0/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- adsorpy-1.2.0/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- adsorpy-1.2.0/.github/PULL_REQUEST_TEMPLATE.md +19 -0
- adsorpy-1.2.0/.github/dependabot.yml +38 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/.github/workflows/docs-ci.yml +1 -2
- {adsorpy-1.1.4 → adsorpy-1.2.0}/.github/workflows/tests-ci.yml +20 -5
- {adsorpy-1.1.4 → adsorpy-1.2.0}/CHANGELOG.md +34 -0
- adsorpy-1.2.0/CODE_OF_CONDUCT.md +128 -0
- adsorpy-1.2.0/CONTRIBUTING.md +151 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/PKG-INFO +32 -23
- {adsorpy-1.1.4 → adsorpy-1.2.0}/README.md +7 -8
- adsorpy-1.2.0/SECURITY.md +48 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/docs/source/adsorpy.rst +1 -0
- adsorpy-1.2.0/docs/source/adsorpy.typing.rst +7 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/docs/source/conf.py +11 -10
- {adsorpy-1.1.4 → adsorpy-1.2.0}/docs/source/index.rst +1 -1
- {adsorpy-1.1.4 → adsorpy-1.2.0}/pyproject.toml +73 -37
- {adsorpy-1.1.4 → adsorpy-1.2.0}/src/adsorpy/molecule_lib.py +71 -73
- {adsorpy-1.1.4 → adsorpy-1.2.0}/src/adsorpy/randomsequentialadsorption.py +66 -67
- {adsorpy-1.1.4 → adsorpy-1.2.0}/src/adsorpy/rsa_calculator.py +66 -61
- {adsorpy-1.1.4 → adsorpy-1.2.0}/src/adsorpy/rsa_config.py +1 -1
- {adsorpy-1.1.4 → adsorpy-1.2.0}/src/adsorpy/run_simulation.py +116 -130
- adsorpy-1.2.0/src/adsorpy/typing.py +39 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/tests/rsa_test.py +304 -168
- {adsorpy-1.1.4 → adsorpy-1.2.0}/tests/run_simulation_test.py +167 -102
- adsorpy-1.2.0/tox.toml +35 -0
- adsorpy-1.1.4/requirements.txt +0 -5
- adsorpy-1.1.4/requirements_dev.txt +0 -8
- adsorpy-1.1.4/tox.ini +0 -33
- {adsorpy-1.1.4 → adsorpy-1.2.0}/.github/workflows/publish_to_PyPI.yml +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/LICENSE.md +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/docs/Makefile +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/docs/make.bat +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/docs/source/adsorpy.molecule_lib.rst +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/docs/source/adsorpy.randomsequentialadsorption.rst +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/docs/source/adsorpy.rsa_calculator.rst +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/docs/source/adsorpy.rsa_config.rst +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/docs/source/adsorpy.run_simulation.rst +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/docs/source/modules.rst +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/images/AdsorPy_Covered_Surface.png +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/py.typed +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/src/__init__.py +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/src/__main__.py +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/src/adsorpy/VdW_Radii.csv +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/src/adsorpy/__init__.py +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/src/adsorpy/config.json +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/src/adsorpy/molecule_colour.json +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/tests/__init__.py +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/tests/test_data/config_test_hard.json +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/tests/test_data/config_test_periodic.json +0 -0
- {adsorpy-1.1.4 → adsorpy-1.2.0}/tests/test_data/config_test_soft.json +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: "[BUG]"
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Describe the bug**
|
|
11
|
+
A clear and concise description of what the bug is.
|
|
12
|
+
|
|
13
|
+
**To Reproduce**
|
|
14
|
+
Steps to reproduce the behavior:
|
|
15
|
+
1. Go to '...'
|
|
16
|
+
2. Click on '....'
|
|
17
|
+
3. Scroll down to '....'
|
|
18
|
+
4. See error
|
|
19
|
+
|
|
20
|
+
**Expected behavior**
|
|
21
|
+
A clear and concise description of what you expected to happen.
|
|
22
|
+
|
|
23
|
+
**Screenshots**
|
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
|
25
|
+
|
|
26
|
+
**Desktop (please complete the following information):**
|
|
27
|
+
- OS: [e.g. NixOS]
|
|
28
|
+
- Python version [e.g. 3.14]
|
|
29
|
+
- adsorpy version [e.g. 1.1.4]
|
|
30
|
+
|
|
31
|
+
**Additional context**
|
|
32
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
+
|
|
13
|
+
**Describe the solution you'd like**
|
|
14
|
+
A clear and concise description of what you want to happen.
|
|
15
|
+
|
|
16
|
+
**Describe alternatives you've considered**
|
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
+
|
|
19
|
+
**Additional context**
|
|
20
|
+
Add any other context or screenshots about the feature request here.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
All Submissions:
|
|
2
|
+
|
|
3
|
+
* [ ] Have you followed the guidelines in our Contributing document?
|
|
4
|
+
* [ ] Have you checked to ensure there aren't other open [Pull Requests](../../../pulls) for the same update/change?
|
|
5
|
+
|
|
6
|
+
<!-- You can erase any parts of this template not applicable to your Pull Request. -->
|
|
7
|
+
|
|
8
|
+
### New Feature Submissions:
|
|
9
|
+
|
|
10
|
+
1. [ ] Does your submission pass all ``pytest`` tests?
|
|
11
|
+
2. [ ] Have you lint your code locally before submission?
|
|
12
|
+
3. [ ] Does your code pass the ``mypy``, ``pyright``, and ``ruff`` checks?
|
|
13
|
+
|
|
14
|
+
### Changes to Core Features:
|
|
15
|
+
|
|
16
|
+
* [ ] Have you added an explanation of what your changes do and why you'd like us to include them?
|
|
17
|
+
* [ ] Have you written new tests for your core changes, as applicable?
|
|
18
|
+
* [ ] Have you successfully run tests with your changes locally?
|
|
19
|
+
* [ ] Does your code pass all checks and tests with ``tox``?
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
|
|
8
|
+
updates:
|
|
9
|
+
- package-ecosystem: "pip" # See documentation for possible values
|
|
10
|
+
directory: "/" # Location of package manifests
|
|
11
|
+
schedule:
|
|
12
|
+
interval: "weekly"
|
|
13
|
+
|
|
14
|
+
groups:
|
|
15
|
+
python-dependencies:
|
|
16
|
+
patterns:
|
|
17
|
+
- "*"
|
|
18
|
+
|
|
19
|
+
commit-message:
|
|
20
|
+
prefix: "deps"
|
|
21
|
+
|
|
22
|
+
labels:
|
|
23
|
+
- "dependencies"
|
|
24
|
+
|
|
25
|
+
rebase-strategy: "auto"
|
|
26
|
+
|
|
27
|
+
ignore: # Does not automatically push major version updates. Those can break things.
|
|
28
|
+
- dependency-name: "*"
|
|
29
|
+
update-types: [ "version-update:semver-major" ]
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# Enable version updates for GitHub Actions
|
|
33
|
+
- package-ecosystem: "github-actions"
|
|
34
|
+
# Workflow files stored in the default location of `.github/workflows`
|
|
35
|
+
# You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.
|
|
36
|
+
directory: "/"
|
|
37
|
+
schedule:
|
|
38
|
+
interval: "weekly"
|
|
@@ -34,8 +34,7 @@ jobs:
|
|
|
34
34
|
- name: Install Sphinx and theme
|
|
35
35
|
run: |
|
|
36
36
|
python -m pip install --upgrade pip
|
|
37
|
-
python -m pip install -e .
|
|
38
|
-
python -m pip install sphinx furo sphinx_design sphinx-autodoc-typehints
|
|
37
|
+
python -m pip install -e .[docs] # Installs adsorpy with [docs] optional requirements.
|
|
39
38
|
|
|
40
39
|
# Optional: configure Pages (sets up base_url, etc.)
|
|
41
40
|
- name: Configure Pages
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
|
|
2
1
|
name: CI
|
|
3
2
|
|
|
4
3
|
on:
|
|
5
|
-
push:
|
|
6
|
-
paths:
|
|
7
|
-
- "src/**"
|
|
8
|
-
- "tests/**"
|
|
9
4
|
pull_request:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
|
|
7
|
+
push:
|
|
8
|
+
branches-ignore: [ main ]
|
|
9
|
+
paths-ignore:
|
|
10
|
+
- "**/*.md"
|
|
11
|
+
- "docs/**"
|
|
12
|
+
- "images/**"
|
|
13
|
+
|
|
10
14
|
|
|
11
15
|
jobs:
|
|
12
16
|
test:
|
|
13
17
|
name: Python Tests
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
14
20
|
runs-on: ubuntu-latest
|
|
15
21
|
strategy:
|
|
16
22
|
matrix:
|
|
@@ -43,3 +49,12 @@ jobs:
|
|
|
43
49
|
uses: codecov/codecov-action@v6
|
|
44
50
|
with:
|
|
45
51
|
token: ${{ secrets.GIST_SECRET }}
|
|
52
|
+
|
|
53
|
+
ci-success:
|
|
54
|
+
permissions: {}
|
|
55
|
+
name: CI
|
|
56
|
+
runs-on: ubuntu-latest
|
|
57
|
+
needs: test
|
|
58
|
+
if: success()
|
|
59
|
+
steps:
|
|
60
|
+
- run: echo "All matrix tests passed"
|
|
@@ -3,12 +3,46 @@ All important changes to ``AdsorPy`` will be documented in this file.
|
|
|
3
3
|
|
|
4
4
|
This format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
5
5
|
|
|
6
|
+
|
|
6
7
|
## [unreleased]
|
|
7
8
|
### Added
|
|
8
9
|
### Changed
|
|
9
10
|
### Fixed
|
|
10
11
|
### Removed
|
|
11
12
|
|
|
13
|
+
## 1.2.0 - 2026-05-06
|
|
14
|
+
### Added
|
|
15
|
+
- Add ``pyright`` linting in strict mode.
|
|
16
|
+
- Add ``typing.py``.
|
|
17
|
+
### Changed
|
|
18
|
+
- Move all ``TypeAlias`` to the new ``typing.py``.
|
|
19
|
+
### Fixed
|
|
20
|
+
- Fix flux: was an ``np.ndarray``, is now a tuple of arrays. Beware: this changes the type of that return value of ``run_simulation()``.
|
|
21
|
+
### Removed
|
|
22
|
+
|
|
23
|
+
## 1.1.5 - 2026-05-04
|
|
24
|
+
### Added
|
|
25
|
+
- Installation can now use ``[test]``, ``[lint]``, and ``[docs]`` as optional dependencies.
|
|
26
|
+
- Add final ``ci-success`` step to the ``tests-ci.yml``.
|
|
27
|
+
- Add ``dependabot.yml`` with permission for minor/patch update pull requests.
|
|
28
|
+
- Add ``CODE_OF_CONDUCT.md``.
|
|
29
|
+
- Add ``CONTRIBUTING.md``.
|
|
30
|
+
- Add ``SECURITY.md``.
|
|
31
|
+
### Changed
|
|
32
|
+
- Change ``test-ci.yml`` order: first on pull_requests, then push. Change push filter from paths to paths-ignore. Now ignores all ``.md`` files and everything in docs. Tests run whenever anything else is changed. Also puts ``main`` on ignore for push. Direct pushing to ``main`` is not allowed, and not ignoring ``main`` would result in duplicate tests.
|
|
33
|
+
- Lower ``test_gapsize_analysis()`` in ``rsa_test.py`` to 100.
|
|
34
|
+
- Change parametrised tests in ``rsa_tests.py`` to improve readability of code and test results.
|
|
35
|
+
- Move from ``tox.ini`` to ``tox.toml``.
|
|
36
|
+
### Fixed
|
|
37
|
+
- Fix potential vulnerabilities in the CI by reducing the scope of permissions.
|
|
38
|
+
- All tests are now ``mypy`` and ``ruff`` compliant.
|
|
39
|
+
- Fix the link to the adsorpy image. The image can now be seen on PyPI.
|
|
40
|
+
### Removed
|
|
41
|
+
- ``requirements.txt``
|
|
42
|
+
- ``requirements_dev.txt``
|
|
43
|
+
- ``requirements_lint.txt``
|
|
44
|
+
- ``requirements_docs.txt``
|
|
45
|
+
|
|
12
46
|
## 1.1.4 - 2026-04-28
|
|
13
47
|
### Added
|
|
14
48
|
### Changed
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity
|
|
10
|
+
and orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
14
|
+
|
|
15
|
+
## Our Standards
|
|
16
|
+
|
|
17
|
+
Examples of behaviour that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
19
|
+
|
|
20
|
+
* Demonstrating empathy and kindness toward other people
|
|
21
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
+
* Giving and gracefully accepting constructive feedback
|
|
23
|
+
* Accepting responsibility and apologising to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the
|
|
26
|
+
overall community
|
|
27
|
+
|
|
28
|
+
Examples of unacceptable behaviour include:
|
|
29
|
+
|
|
30
|
+
* The use of sexualised language or imagery, and sexual attention or
|
|
31
|
+
advances of any kind
|
|
32
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
+
* Public or private harassment
|
|
34
|
+
* Publishing others' private information, such as a physical or email
|
|
35
|
+
address, without their explicit permission
|
|
36
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
+
professional setting
|
|
38
|
+
|
|
39
|
+
## Enforcement Responsibilities
|
|
40
|
+
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behaviour and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behaviour that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
45
|
+
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
50
|
+
|
|
51
|
+
## Scope
|
|
52
|
+
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
Examples of representing our community include using an official e-mail address,
|
|
56
|
+
posting via an official social media account, or acting as an appointed
|
|
57
|
+
representative at an online or offline event.
|
|
58
|
+
|
|
59
|
+
## Enforcement
|
|
60
|
+
|
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behaviour may be
|
|
62
|
+
reported to the community leaders responsible for enforcement at
|
|
63
|
+
[j.f.w.maas@tue.nl](mailto:j.f.w.maas@tue.nl).
|
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
65
|
+
|
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
+
reporter of any incident.
|
|
68
|
+
|
|
69
|
+
## Enforcement Guidelines
|
|
70
|
+
|
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
+
|
|
74
|
+
### 1. Correction
|
|
75
|
+
|
|
76
|
+
**Community Impact**: Use of inappropriate language or other behaviour deemed
|
|
77
|
+
unprofessional or unwelcome in the community.
|
|
78
|
+
|
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
|
81
|
+
behaviour was inappropriate. A public apology may be requested.
|
|
82
|
+
|
|
83
|
+
### 2. Warning
|
|
84
|
+
|
|
85
|
+
**Community Impact**: A violation through a single incident or series
|
|
86
|
+
of actions.
|
|
87
|
+
|
|
88
|
+
**Consequence**: A warning with consequences for continued behaviour. No
|
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
+
like social media. Violating these terms may lead to a temporary or
|
|
93
|
+
permanent ban.
|
|
94
|
+
|
|
95
|
+
### 3. Temporary Ban
|
|
96
|
+
|
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
|
98
|
+
sustained inappropriate behaviour.
|
|
99
|
+
|
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
+
communication with the community for a specified period of time. No public or
|
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
+
Violating these terms may lead to a permanent ban.
|
|
105
|
+
|
|
106
|
+
### 4. Permanent Ban
|
|
107
|
+
|
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
+
standards, including sustained inappropriate behaviour, harassment of an
|
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
+
|
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within
|
|
113
|
+
the community.
|
|
114
|
+
|
|
115
|
+
## Attribution
|
|
116
|
+
|
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
+
version 2.0, available at
|
|
119
|
+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
|
120
|
+
|
|
121
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
|
122
|
+
enforcement ladder](https://github.com/mozilla/diversity).
|
|
123
|
+
|
|
124
|
+
[homepage]: https://www.contributor-covenant.org
|
|
125
|
+
|
|
126
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
127
|
+
https://www.contributor-covenant.org/faq. Translations are available at
|
|
128
|
+
https://www.contributor-covenant.org/translations.
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
<!-- omit in toc -->
|
|
2
|
+
# Contributing to AdsorPy
|
|
3
|
+
|
|
4
|
+
Thank you for taking the time to contribute.
|
|
5
|
+
|
|
6
|
+
All types of contributions are encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles them. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions. 🎉
|
|
7
|
+
|
|
8
|
+
> And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:
|
|
9
|
+
> - Star the project
|
|
10
|
+
> - Share the project with others
|
|
11
|
+
> - Refer this project in your project's readme
|
|
12
|
+
> - Mention the project at local meetups and tell your friends/colleagues
|
|
13
|
+
|
|
14
|
+
<!-- omit in toc -->
|
|
15
|
+
## Table of Contents
|
|
16
|
+
|
|
17
|
+
- [I Have a Question](#i-have-a-question)
|
|
18
|
+
- [I Want To Contribute](#i-want-to-contribute)
|
|
19
|
+
- [Reporting Bugs](#reporting-bugs)
|
|
20
|
+
- [Suggesting Enhancements](#suggesting-enhancements)
|
|
21
|
+
- [Your First Code Contribution](#your-first-code-contribution)
|
|
22
|
+
- [Improving The Documentation](#improving-the-documentation)
|
|
23
|
+
- [Styleguides](#styleguides)
|
|
24
|
+
- [Commit Messages](#commit-messages)
|
|
25
|
+
- [Join The Project Team](#join-the-project-team)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## I Have a Question
|
|
30
|
+
|
|
31
|
+
> If you want to ask a question, we assume that you have read the available [Documentation](https://joostfwmaas.github.io/AdsorPy/).
|
|
32
|
+
|
|
33
|
+
Before you ask a question, it is best to search for existing [Issues](https://github.com/JoostFWMaas/AdsorPy/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.
|
|
34
|
+
|
|
35
|
+
If you then still feel the need to ask a question and need clarification, we recommend the following:
|
|
36
|
+
|
|
37
|
+
- Open an [Issue](https://github.com/JoostFWMaas/AdsorPy/issues/new).
|
|
38
|
+
- Provide as much context as you can about what you're running into.
|
|
39
|
+
- Provide project and platform versions (nodejs, npm, etc), depending on what seems relevant.
|
|
40
|
+
|
|
41
|
+
We will then take care of the issue as soon as possible.
|
|
42
|
+
|
|
43
|
+
<!--
|
|
44
|
+
You might want to create a separate issue tag for questions and include it in this description. People should then tag their issues accordingly.
|
|
45
|
+
|
|
46
|
+
Depending on how large the project is, you may want to outsource the questioning, e.g. to Stack Overflow or Gitter. You may add additional contact and information possibilities:
|
|
47
|
+
- IRC
|
|
48
|
+
- Slack
|
|
49
|
+
- Gitter
|
|
50
|
+
- Stack Overflow tag
|
|
51
|
+
- Blog
|
|
52
|
+
- FAQ
|
|
53
|
+
- Roadmap
|
|
54
|
+
- E-Mail List
|
|
55
|
+
- Forum
|
|
56
|
+
-->
|
|
57
|
+
|
|
58
|
+
## I Want To Contribute
|
|
59
|
+
|
|
60
|
+
> ### Legal Notice <!-- omit in toc -->
|
|
61
|
+
> When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project [licence](LICENSE.md).
|
|
62
|
+
|
|
63
|
+
### Reporting Bugs
|
|
64
|
+
|
|
65
|
+
<!-- omit in toc -->
|
|
66
|
+
#### Before Submitting a Bug Report
|
|
67
|
+
|
|
68
|
+
A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.
|
|
69
|
+
|
|
70
|
+
- Make sure that you are using the latest version.
|
|
71
|
+
- Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (Make sure that you have read the [documentation](https://joostfwmaas.github.io/AdsorPy/). If you are looking for support, you might want to check [this section](#i-have-a-question)).
|
|
72
|
+
- To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://github.com/JoostFWMaas/AdsorPy/issues?q=label%3Abug).
|
|
73
|
+
- Also make sure to search the internet (including Stack Overflow) to see if users outside of the GitHub community have discussed the issue.
|
|
74
|
+
- Collect information about the bug:
|
|
75
|
+
- Stack trace (Traceback)
|
|
76
|
+
- OS, Platform and Version (Windows, Linux, macOS, x86, ARM)
|
|
77
|
+
- Version of the interpreter, compiler, SDK, runtime environment, package manager, depending on what seems relevant.
|
|
78
|
+
- Possibly your input and the output
|
|
79
|
+
- Can you reliably reproduce the issue? And can you also reproduce it with older versions?
|
|
80
|
+
|
|
81
|
+
<!-- omit in toc -->
|
|
82
|
+
#### How Do I Submit a Good Bug Report?
|
|
83
|
+
|
|
84
|
+
> You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to <j.f.w.maas@tue.nl>.
|
|
85
|
+
<!-- You may add a PGP key to allow the messages to be sent encrypted as well. -->
|
|
86
|
+
|
|
87
|
+
We use GitHub issues to track bugs and errors. If you run into an issue with the project:
|
|
88
|
+
|
|
89
|
+
- Open an [Issue](https://github.com/JoostFWMaas/AdsorPy/issues/new). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
|
|
90
|
+
- Explain the behaviour you would expect and the actual behaviour.
|
|
91
|
+
- Please provide as much context as possible and describe the *reproduction steps* that someone else can follow to recreate the issue on their own. This usually includes a minimal working example (MWE) of your code. For good bug reports you should isolate the problem and create a reduced test case.
|
|
92
|
+
- Provide the information you collected in the previous section.
|
|
93
|
+
|
|
94
|
+
Once it's filed:
|
|
95
|
+
|
|
96
|
+
- The project team will label the issue accordingly.
|
|
97
|
+
- A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps and mark the issue as `needs-repro`. Bugs with the `needs-repro` tag will not be addressed until they are reproduced.
|
|
98
|
+
- If the team is able to reproduce the issue, it will be marked `needs-fix`, as well as possibly other tags (such as `critical`), and the issue will be left to be [implemented by someone](#your-first-code-contribution).
|
|
99
|
+
|
|
100
|
+
<!-- You might want to create an issue template for bugs and errors that can be used as a guide and that defines the structure of the information to be included. If you do so, reference it here in the description. -->
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Suggesting Enhancements
|
|
104
|
+
|
|
105
|
+
This section guides you through submitting an enhancement suggestion for AdsorPy, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions.
|
|
106
|
+
|
|
107
|
+
<!-- omit in toc -->
|
|
108
|
+
#### Before Submitting an Enhancement
|
|
109
|
+
|
|
110
|
+
- Make sure that you are using the latest version.
|
|
111
|
+
- Read the [documentation](https://joostfwmaas.github.io/AdsorPy/) carefully and find out if the functionality is already covered, maybe by an individual configuration.
|
|
112
|
+
- Perform a [search](https://github.com/JoostFWMaas/AdsorPy/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
|
|
113
|
+
- Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library.
|
|
114
|
+
|
|
115
|
+
<!-- omit in toc -->
|
|
116
|
+
#### How Do I Submit a Good Enhancement Suggestion?
|
|
117
|
+
|
|
118
|
+
Enhancement suggestions are tracked as [GitHub issues](https://github.com/JoostFWMaas/AdsorPy/issues).
|
|
119
|
+
|
|
120
|
+
- Use a **clear and descriptive title** for the issue to identify the suggestion.
|
|
121
|
+
- Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
|
|
122
|
+
- **Describe the current behaviour** and **explain which behaviour you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
|
|
123
|
+
- You may want to **include screenshots or screen recordings** which help you demonstrate the steps or point out the part which the suggestion is related to. You can use [LICEcap](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and the built-in [screen recorder in GNOME](https://help.gnome.org/users/gnome-help/stable/screen-shot-record.html.en) or [SimpleScreenRecorder](https://github.com/MaartenBaert/ssr) on Linux. <!-- this should only be included if the project has a GUI -->
|
|
124
|
+
- **Explain why this enhancement would be useful** to most AdsorPy users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
|
|
125
|
+
|
|
126
|
+
<!-- You might want to create an issue template for enhancement suggestions that can be used as a guide and that defines the structure of the information to be included. If you do so, reference it here in the description. -->
|
|
127
|
+
|
|
128
|
+
### Your First Code Contribution
|
|
129
|
+
<!-- TODO
|
|
130
|
+
include Setup of env, IDE and typical getting started instructions?
|
|
131
|
+
|
|
132
|
+
-->
|
|
133
|
+
|
|
134
|
+
### Improving The Documentation
|
|
135
|
+
<!-- TODO
|
|
136
|
+
Updating, improving and correcting the documentation
|
|
137
|
+
|
|
138
|
+
-->
|
|
139
|
+
|
|
140
|
+
## Styleguides
|
|
141
|
+
### Commit Messages
|
|
142
|
+
<!-- TODO
|
|
143
|
+
|
|
144
|
+
-->
|
|
145
|
+
|
|
146
|
+
## Join The Project Team
|
|
147
|
+
<!-- TODO -->
|
|
148
|
+
|
|
149
|
+
<!-- omit in toc -->
|
|
150
|
+
## Attribution
|
|
151
|
+
This guide is based on the [contributing.md](https://contributing.md/generator)!
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: adsorpy
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: Random sequential adsorption (RSA) simulation, 2D lattice-based.
|
|
5
|
-
Project-URL:
|
|
5
|
+
Project-URL: github, https://github.com/JoostFWMaas/AdsorPy
|
|
6
6
|
Project-URL: Documentation, https://joostfwmaas.github.io/AdsorPy
|
|
7
7
|
Project-URL: Changelog, https://github.com/JoostFWMaas/AdsorPy/blob/main/CHANGELOG.md
|
|
8
8
|
Author-email: "J.F.W. Maas" <j.f.w.maas@tue.nl>
|
|
@@ -30,25 +30,34 @@ Classifier: Topic :: Scientific/Engineering :: Physics
|
|
|
30
30
|
Classifier: Topic :: Software Development
|
|
31
31
|
Classifier: Typing :: Typed
|
|
32
32
|
Requires-Python: >=3.10
|
|
33
|
-
Requires-Dist: matplotlib
|
|
34
|
-
Requires-Dist: numba
|
|
35
|
-
Requires-Dist: numpy
|
|
36
|
-
Requires-Dist:
|
|
37
|
-
Requires-Dist:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
Requires-Dist:
|
|
41
|
-
Requires-Dist:
|
|
42
|
-
Requires-Dist:
|
|
43
|
-
Requires-Dist:
|
|
44
|
-
Requires-Dist:
|
|
45
|
-
|
|
33
|
+
Requires-Dist: matplotlib>=3.10.9
|
|
34
|
+
Requires-Dist: numba>=0.65.1
|
|
35
|
+
Requires-Dist: numpy>=2.2.6; python_version == '3.10'
|
|
36
|
+
Requires-Dist: numpy>=2.4.4; python_version >= '3.11'
|
|
37
|
+
Requires-Dist: rtree>=1.4.1
|
|
38
|
+
Requires-Dist: shapely>=2.1.2
|
|
39
|
+
Provides-Extra: docs
|
|
40
|
+
Requires-Dist: furo>=2025.12.19; extra == 'docs'
|
|
41
|
+
Requires-Dist: sphinx-autodoc-typehints>=3.10.2; extra == 'docs'
|
|
42
|
+
Requires-Dist: sphinx-design>=0.7.0; extra == 'docs'
|
|
43
|
+
Requires-Dist: sphinx-pyproject>=0.3.0; extra == 'docs'
|
|
44
|
+
Requires-Dist: sphinx>=9.1.0; extra == 'docs'
|
|
45
|
+
Provides-Extra: lint
|
|
46
|
+
Requires-Dist: mypy>=2.0.0; extra == 'lint'
|
|
47
|
+
Requires-Dist: pyright>=1.1.409; extra == 'lint'
|
|
48
|
+
Requires-Dist: ruff>=0.15.12; extra == 'lint'
|
|
49
|
+
Provides-Extra: test
|
|
50
|
+
Requires-Dist: codecov>=2.1.13; extra == 'test'
|
|
51
|
+
Requires-Dist: hypothesis>=6.152.4; extra == 'test'
|
|
52
|
+
Requires-Dist: pytest-cov>=7.1.0; extra == 'test'
|
|
53
|
+
Requires-Dist: pytest>=9.0.3; extra == 'test'
|
|
54
|
+
Requires-Dist: scipy==1.15.3; (python_version == '3.10') and extra == 'test'
|
|
55
|
+
Requires-Dist: scipy>=1.17.1; (python_version >= '3.11') and extra == 'test'
|
|
46
56
|
Description-Content-Type: text/markdown
|
|
47
57
|
|
|
48
58
|
# AdsorPy
|
|
49
59
|
|
|
50
|
-

|
|
51
|
-
|
|
60
|
+

|
|
52
61
|

|
|
53
62
|
[](https://codecov.io/github/JoostFWMaas/AdsorPy)
|
|
54
63
|
|
|
@@ -73,7 +82,7 @@ Run the `adsorpy.run_simulation.run_simulation()` function with the molecule foo
|
|
|
73
82
|
User friendliness will be updated at a later stage, allowing the user to define simulation modes, surfaces, and
|
|
74
83
|
molecules more easily.
|
|
75
84
|
|
|
76
|
-
Documentation (generated with `
|
|
85
|
+
Documentation (generated with `sphinx`): https://joostfwmaas.github.io/AdsorPy/
|
|
77
86
|
|
|
78
87
|
## Future additions
|
|
79
88
|
|
|
@@ -82,11 +91,11 @@ In a future update, the code will be expanded with diffusion, desorption, and sp
|
|
|
82
91
|
## Design philosophy
|
|
83
92
|
|
|
84
93
|
Because AdsorPy has been made with scientific rigour in mind, the package is tested in multiple ways:
|
|
85
|
-
- Unit tests (`
|
|
86
|
-
- Property tests (`
|
|
87
|
-
- `
|
|
88
|
-
- `
|
|
89
|
-
- `
|
|
94
|
+
- Unit tests (`pytest`) of the code ensure correct behaviour for expected input.
|
|
95
|
+
- Property tests (`hypothesis`) of the most critical code components ensure correct behaviour for unexpected input as well.
|
|
96
|
+
- `mypy` (in `--strict` mode) and `pyright` (`strict`) ensure that the package is correctly-typed, as if it were static. The `py.typed` file, a promise that the code is type-hinted properly, is added because the code passes this test.
|
|
97
|
+
- `ruff` is used as a linter with almost all rules enabled (see the pyproject.toml for the list of exclusions and reasons).
|
|
98
|
+
- `tox` is used to run all of the aforementioned tests in parallel for multiple Python versions to ensure correct behaviour.
|
|
90
99
|
- CI is used for automated testing.
|
|
91
100
|
|
|
92
101
|
The package also makes use of an optional config file that falls back on standard behaviour, because configs are often used in scientific software (set-and-forget).
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# AdsorPy
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-
|
|
3
|
+

|
|
5
4
|

|
|
6
5
|
[](https://codecov.io/github/JoostFWMaas/AdsorPy)
|
|
7
6
|
|
|
@@ -26,7 +25,7 @@ Run the `adsorpy.run_simulation.run_simulation()` function with the molecule foo
|
|
|
26
25
|
User friendliness will be updated at a later stage, allowing the user to define simulation modes, surfaces, and
|
|
27
26
|
molecules more easily.
|
|
28
27
|
|
|
29
|
-
Documentation (generated with `
|
|
28
|
+
Documentation (generated with `sphinx`): https://joostfwmaas.github.io/AdsorPy/
|
|
30
29
|
|
|
31
30
|
## Future additions
|
|
32
31
|
|
|
@@ -35,11 +34,11 @@ In a future update, the code will be expanded with diffusion, desorption, and sp
|
|
|
35
34
|
## Design philosophy
|
|
36
35
|
|
|
37
36
|
Because AdsorPy has been made with scientific rigour in mind, the package is tested in multiple ways:
|
|
38
|
-
- Unit tests (`
|
|
39
|
-
- Property tests (`
|
|
40
|
-
- `
|
|
41
|
-
- `
|
|
42
|
-
- `
|
|
37
|
+
- Unit tests (`pytest`) of the code ensure correct behaviour for expected input.
|
|
38
|
+
- Property tests (`hypothesis`) of the most critical code components ensure correct behaviour for unexpected input as well.
|
|
39
|
+
- `mypy` (in `--strict` mode) and `pyright` (`strict`) ensure that the package is correctly-typed, as if it were static. The `py.typed` file, a promise that the code is type-hinted properly, is added because the code passes this test.
|
|
40
|
+
- `ruff` is used as a linter with almost all rules enabled (see the pyproject.toml for the list of exclusions and reasons).
|
|
41
|
+
- `tox` is used to run all of the aforementioned tests in parallel for multiple Python versions to ensure correct behaviour.
|
|
43
42
|
- CI is used for automated testing.
|
|
44
43
|
|
|
45
44
|
The package also makes use of an optional config file that falls back on standard behaviour, because configs are often used in scientific software (set-and-forget).
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
Security updates are provided only for the latest released version of this project.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Security Considerations
|
|
10
|
+
|
|
11
|
+
AdsorPy is a scientific Python library intended for research and educational use.
|
|
12
|
+
It does **not** handle authentication, authorisation, personal data, or network‑exposed services.
|
|
13
|
+
|
|
14
|
+
As such, it is **not designed to operate in security‑critical or adversarial environments**.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Reporting a Vulnerability
|
|
19
|
+
|
|
20
|
+
If you believe you have found a security‑related issue, please report it **privately** by emailing:
|
|
21
|
+
|
|
22
|
+
[j.f.w.maas@tue.nl](mailto:j.f.w.maas@tue.nl)
|
|
23
|
+
|
|
24
|
+
PGP encryption is not currently provided. Plain‑text email is acceptable.
|
|
25
|
+
|
|
26
|
+
Please include:
|
|
27
|
+
- A clear description of the issue
|
|
28
|
+
- Steps to reproduce (if applicable)/a minimal working example (MWE)
|
|
29
|
+
- Any relevant logs or traces
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Non‑Security Issues
|
|
34
|
+
|
|
35
|
+
The following are **not considered security issues** and should be reported via normal GitHub issues:
|
|
36
|
+
|
|
37
|
+
- Bugs
|
|
38
|
+
- Performance problems
|
|
39
|
+
- Documentation errors
|
|
40
|
+
- Dependency updates
|
|
41
|
+
- Test failures
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Disclosure Policy
|
|
46
|
+
|
|
47
|
+
Please do not publicly disclose potential security issues until they have been reviewed.
|
|
48
|
+
We make no guarantees regarding response time or remediation, but we appreciate responsible disclosure.
|