AdsorPy 1.3.1__tar.gz → 1.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. {adsorpy-1.3.1 → adsorpy-1.3.2}/PKG-INFO +32 -26
  2. {adsorpy-1.3.1 → adsorpy-1.3.2}/pyproject.toml +39 -25
  3. {adsorpy-1.3.1 → adsorpy-1.3.2}/sbom.cdx.json +1447 -751
  4. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/gui.py +209 -177
  5. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/molecule_lib.py +55 -63
  6. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/randomsequentialadsorption.py +54 -60
  7. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/rsa_calculator.py +18 -13
  8. adsorpy-1.3.2/src/adsorpy/rsa_config.py +128 -0
  9. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/run_simulation.py +113 -74
  10. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/types.py +13 -5
  11. adsorpy-1.3.1/src/adsorpy/rsa_config.py +0 -90
  12. {adsorpy-1.3.1 → adsorpy-1.3.2}/LICENSE.md +0 -0
  13. {adsorpy-1.3.1 → adsorpy-1.3.2}/README.md +0 -0
  14. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/VdW_Radii.csv +0 -0
  15. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/__init__.py +0 -0
  16. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/assets/Icon_attribution.txt +0 -0
  17. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/assets/book-open-list.png +0 -0
  18. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/assets/book-question.png +0 -0
  19. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/assets/bug--exclamation.png +0 -0
  20. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/assets/door-open-out.png +0 -0
  21. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/compiled_squared_cdist.c +0 -0
  22. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/compiled_squared_cdist.cpython-313-x86_64-linux-gnu.so +0 -0
  23. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/compiled_squared_cdist.pyx +0 -0
  24. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/config.json +0 -0
  25. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/molecule_colour.json +0 -0
  26. {adsorpy-1.3.1 → adsorpy-1.3.2}/src/adsorpy/vdw_radii.json +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: adsorpy
3
- Version: 1.3.1
3
+ Version: 1.3.2
4
4
  Summary: Random sequential adsorption (RSA) simulation, 2D lattice-based.
5
5
  Project-URL: github, https://github.com/JoostFWMaas/AdsorPy
6
6
  Project-URL: Documentation, https://joostfwmaas.github.io/AdsorPy
@@ -36,12 +36,14 @@ Requires-Dist: beautifulsoup4>=4.10.0
36
36
  Requires-Dist: defusedxml>=0.7.1
37
37
  Requires-Dist: entrypoints>=0.2.3
38
38
  Requires-Dist: enum34>=1.1.10
39
+ Requires-Dist: frozendict>=2.4.7; python_version <= '3.14'
39
40
  Requires-Dist: future>=1.0.0
40
41
  Requires-Dist: html5lib>=1.1
41
42
  Requires-Dist: ipaddress>=1.0.23
42
43
  Requires-Dist: matplotlib>=3.10.9
43
44
  Requires-Dist: numpy>=2.2.6
44
45
  Requires-Dist: ply>=3.11
46
+ Requires-Dist: pre-commit>=4.6.2
45
47
  Requires-Dist: pycparser>=3.0.0
46
48
  Requires-Dist: pydantic-extra-types>=2.11.1
47
49
  Requires-Dist: pydantic>=2.13.4
@@ -56,49 +58,51 @@ Requires-Dist: typing-extensions>=4.16.0
56
58
  Requires-Dist: wcwidth>=0.7.0
57
59
  Requires-Dist: webencodings>=0.5.1
58
60
  Provides-Extra: dev-complete
59
- Requires-Dist: basedpyright==1.39.10; extra == 'dev-complete'
60
- Requires-Dist: build>=1.5.0; extra == 'dev-complete'
61
+ Requires-Dist: basedpyright==1.40.1; extra == 'dev-complete'
62
+ Requires-Dist: build>=1.6.1; extra == 'dev-complete'
61
63
  Requires-Dist: check-wheel-contents>=0.6.3; extra == 'dev-complete'
62
64
  Requires-Dist: cibuildwheel>=2.23.4; extra == 'dev-complete'
63
65
  Requires-Dist: codecov>=2.1.13; extra == 'dev-complete'
64
- Requires-Dist: cryptography>=50.0.0; extra == 'dev-complete'
65
- Requires-Dist: dask[distributed]>=2026.7.1; extra == 'dev-complete'
66
+ Requires-Dist: cryptography>=50.0.1; extra == 'dev-complete'
67
+ Requires-Dist: dask[distributed]>=2026.8.0; extra == 'dev-complete'
66
68
  Requires-Dist: easyprocess>=1.1; (sys_platform == 'linux') and extra == 'dev-complete'
67
69
  Requires-Dist: furo>=2025.12.19; extra == 'dev-complete'
68
- Requires-Dist: gitpython>=3.1.59; extra == 'dev-complete'
70
+ Requires-Dist: gitpython>=3.1.62; extra == 'dev-complete'
69
71
  Requires-Dist: h5py>=3.16.0; extra == 'dev-complete'
70
- Requires-Dist: hypothesis>=6.165.5; extra == 'dev-complete'
72
+ Requires-Dist: hypothesis>=6.168.1; extra == 'dev-complete'
71
73
  Requires-Dist: mypy==2.3.1; extra == 'dev-complete'
72
74
  Requires-Dist: nodeenv>=1.10.0; extra == 'dev-complete'
73
75
  Requires-Dist: pandas>=2.3.3; extra == 'dev-complete'
74
76
  Requires-Dist: pre-commit>=4.6.2; extra == 'dev-complete'
75
77
  Requires-Dist: pyside6-stubs==6.7.3.0; extra == 'dev-complete'
76
78
  Requires-Dist: pytest-cov>=7.1.0; extra == 'dev-complete'
79
+ Requires-Dist: pytest-env>=1.7.1; extra == 'dev-complete'
77
80
  Requires-Dist: pytest-qt>=4.5.0; extra == 'dev-complete'
78
81
  Requires-Dist: pytest-xvfb>=3.1.1; (sys_platform == 'linux') and extra == 'dev-complete'
79
82
  Requires-Dist: pytest>=9.1.1; extra == 'dev-complete'
80
83
  Requires-Dist: pyvirtualdisplay>=1.3; (sys_platform == 'linux') and extra == 'dev-complete'
81
- Requires-Dist: ruff==0.16.3; extra == 'dev-complete'
84
+ Requires-Dist: ruff==0.16.8; extra == 'dev-complete'
82
85
  Requires-Dist: scipy>=1.15.3; extra == 'dev-complete'
83
86
  Requires-Dist: seaborn>=0.13.2; extra == 'dev-complete'
84
- Requires-Dist: slotscheck==0.20.1; extra == 'dev-complete'
87
+ Requires-Dist: slotscheck==0.21.0; extra == 'dev-complete'
85
88
  Requires-Dist: sphinx-autodoc-typehints>=3.0.1; extra == 'dev-complete'
86
89
  Requires-Dist: sphinx-design>=0.6.1; extra == 'dev-complete'
87
90
  Requires-Dist: sphinx-pyproject>=0.3.0; extra == 'dev-complete'
88
91
  Requires-Dist: sphinx>=8.1.3; extra == 'dev-complete'
89
- Requires-Dist: tach==0.35.0; extra == 'dev-complete'
92
+ Requires-Dist: tach==0.35.1; extra == 'dev-complete'
90
93
  Requires-Dist: tox-uv==1.36.0; extra == 'dev-complete'
91
- Requires-Dist: tox==4.60.0; extra == 'dev-complete'
92
- Requires-Dist: twine>=6.0; extra == 'dev-complete'
93
- Requires-Dist: uv==0.12.5; extra == 'dev-complete'
94
+ Requires-Dist: tox==4.63.0; extra == 'dev-complete'
95
+ Requires-Dist: twine>=7.0.0; extra == 'dev-complete'
96
+ Requires-Dist: types-shapely>=2.1.0.20260728; extra == 'dev-complete'
97
+ Requires-Dist: uv==0.12.17; extra == 'dev-complete'
94
98
  Provides-Extra: dev-misc
95
- Requires-Dist: build>=1.5.0; extra == 'dev-misc'
99
+ Requires-Dist: build>=1.6.1; extra == 'dev-misc'
96
100
  Requires-Dist: check-wheel-contents>=0.6.3; extra == 'dev-misc'
97
101
  Requires-Dist: cibuildwheel>=2.23.4; extra == 'dev-misc'
98
- Requires-Dist: cryptography>=50.0.0; extra == 'dev-misc'
102
+ Requires-Dist: cryptography>=50.0.1; extra == 'dev-misc'
99
103
  Requires-Dist: nodeenv>=1.10.0; extra == 'dev-misc'
100
104
  Requires-Dist: pre-commit>=4.6.2; extra == 'dev-misc'
101
- Requires-Dist: twine>=6.0; extra == 'dev-misc'
105
+ Requires-Dist: twine>=7.0.0; extra == 'dev-misc'
102
106
  Provides-Extra: docs
103
107
  Requires-Dist: furo>=2025.12.19; extra == 'docs'
104
108
  Requires-Dist: sphinx-autodoc-typehints>=3.0.1; extra == 'docs'
@@ -107,29 +111,31 @@ Requires-Dist: sphinx-pyproject>=0.3.0; extra == 'docs'
107
111
  Requires-Dist: sphinx>=8.1.3; extra == 'docs'
108
112
  Provides-Extra: envs
109
113
  Requires-Dist: tox-uv==1.36.0; extra == 'envs'
110
- Requires-Dist: tox==4.60.0; extra == 'envs'
111
- Requires-Dist: uv==0.12.5; extra == 'envs'
114
+ Requires-Dist: tox==4.63.0; extra == 'envs'
115
+ Requires-Dist: uv==0.12.17; extra == 'envs'
112
116
  Provides-Extra: gui-deps
113
- Requires-Dist: dask[distributed]>=2026.7.1; extra == 'gui-deps'
117
+ Requires-Dist: dask[distributed]>=2026.8.0; extra == 'gui-deps'
114
118
  Requires-Dist: h5py>=3.16.0; extra == 'gui-deps'
115
119
  Requires-Dist: pandas>=2.3.3; extra == 'gui-deps'
116
120
  Requires-Dist: seaborn>=0.13.2; extra == 'gui-deps'
117
121
  Provides-Extra: lint
118
- Requires-Dist: basedpyright==1.39.10; extra == 'lint'
119
- Requires-Dist: gitpython>=3.1.59; extra == 'lint'
122
+ Requires-Dist: basedpyright==1.40.1; extra == 'lint'
123
+ Requires-Dist: gitpython>=3.1.62; extra == 'lint'
120
124
  Requires-Dist: mypy==2.3.1; extra == 'lint'
121
125
  Requires-Dist: pyside6-stubs==6.7.3.0; extra == 'lint'
122
- Requires-Dist: ruff==0.16.3; extra == 'lint'
123
- Requires-Dist: slotscheck==0.20.1; extra == 'lint'
124
- Requires-Dist: tach==0.35.0; extra == 'lint'
126
+ Requires-Dist: ruff==0.16.8; extra == 'lint'
127
+ Requires-Dist: slotscheck==0.21.0; extra == 'lint'
128
+ Requires-Dist: tach==0.35.1; extra == 'lint'
129
+ Requires-Dist: types-shapely>=2.1.0.20260728; extra == 'lint'
125
130
  Provides-Extra: test
126
131
  Requires-Dist: codecov>=2.1.13; extra == 'test'
127
- Requires-Dist: dask[distributed]>=2026.7.1; extra == 'test'
132
+ Requires-Dist: dask[distributed]>=2026.8.0; extra == 'test'
128
133
  Requires-Dist: easyprocess>=1.1; (sys_platform == 'linux') and extra == 'test'
129
134
  Requires-Dist: h5py>=3.16.0; extra == 'test'
130
- Requires-Dist: hypothesis>=6.165.5; extra == 'test'
135
+ Requires-Dist: hypothesis>=6.168.1; extra == 'test'
131
136
  Requires-Dist: pandas>=2.3.3; extra == 'test'
132
137
  Requires-Dist: pytest-cov>=7.1.0; extra == 'test'
138
+ Requires-Dist: pytest-env>=1.7.1; extra == 'test'
133
139
  Requires-Dist: pytest-qt>=4.5.0; extra == 'test'
134
140
  Requires-Dist: pytest-xvfb>=3.1.1; (sys_platform == 'linux') and extra == 'test'
135
141
  Requires-Dist: pytest>=9.1.1; extra == 'test'
@@ -27,7 +27,7 @@ extra_link_args = ["-lomp"]
27
27
  [project]
28
28
  name = "adsorpy"
29
29
  #dynamic = ["version"] # The Python guide says that this will use the Git tag to fill it in.
30
- version = "1.3.1" # Edit manually.
30
+ version = "1.3.2" # Edit manually.
31
31
  description = "Random sequential adsorption (RSA) simulation, 2D lattice-based."
32
32
  authors = [{ name = "J.F.W. Maas", email = "j.f.w.maas@tue.nl" }]
33
33
  readme = "README.md"
@@ -57,7 +57,7 @@ classifiers = [
57
57
  "Programming Language :: Python :: 3.12",
58
58
  "Programming Language :: Python :: 3.13",
59
59
  "Programming Language :: Python :: 3.14",
60
- # This does not run on mobile because of Shapely.
60
+ # This does not run on mobile because of Shapely. It runs everywhere else, see matrix tests in CI.
61
61
  "Operating System :: OS Independent",
62
62
  ]
63
63
  keywords = [
@@ -80,7 +80,6 @@ keywords = [
80
80
 
81
81
  dependencies = [
82
82
  "numpy>=2.2.6",
83
- # "numba>=0.67.0",
84
83
  "matplotlib>=3.10.9",
85
84
  "shapely>=2.1.2",
86
85
  "pydantic>=2.13.4",
@@ -90,6 +89,7 @@ dependencies = [
90
89
  "defusedxml>=0.7.1",
91
90
  "PySide6>=6.11.1",
92
91
  "typing-extensions>=4.16.0",
92
+ "frozendict>=2.4.7; python_version <= '3.14'", # This exists in default Python starting 3.15.
93
93
  # Everything after this line is included so uv also runs with the lowest dependency resolution.
94
94
  "html5lib>=1.1",
95
95
  "wcwidth>=0.7.0",
@@ -104,6 +104,7 @@ dependencies = [
104
104
  "enum34>=1.1.10",
105
105
  "ipaddress>=1.0.23",
106
106
  "ply>=3.11",
107
+ "pre-commit>=4.6.2",
107
108
  ]
108
109
 
109
110
 
@@ -111,7 +112,7 @@ dependencies = [
111
112
  test = [
112
113
  "pytest>=9.1.1",
113
114
  "pytest-cov>=7.1.0",
114
- "hypothesis>=6.165.5",
115
+ "hypothesis>=6.168.1",
115
116
  "scipy>=1.15.3",
116
117
  "codecov>=2.1.13",
117
118
  "pytest-qt>=4.5.0",
@@ -119,15 +120,17 @@ test = [
119
120
  "pytest-xvfb>=3.1.1; sys_platform == 'linux'",
120
121
  "pyvirtualdisplay>=1.3; sys_platform == 'linux'",
121
122
  "easyprocess>=1.1; sys_platform == 'linux'",
123
+ "pytest-env>=1.7.1",
122
124
  ]
123
125
  lint = [
124
126
  "mypy==2.3.1",
125
- "ruff==0.16.3",
126
- "basedpyright==1.39.10",
127
- "tach==0.35.0",
128
- "slotscheck==0.20.1",
127
+ "ruff==0.16.8",
128
+ "basedpyright==1.40.1",
129
+ "tach==0.35.1",
130
+ "slotscheck==0.21.0",
129
131
  "pyside6-stubs==6.7.3.0",
130
- "gitpython>=3.1.59",
132
+ "gitpython>=3.1.62",
133
+ "types-shapely>=2.1.0.20260728",
131
134
  ]
132
135
  docs = [
133
136
  "sphinx>=8.1.3",
@@ -137,14 +140,14 @@ docs = [
137
140
  "sphinx-pyproject>=0.3.0",
138
141
  ]
139
142
  envs = [
140
- "tox==4.60.0",
143
+ "tox==4.63.0",
141
144
  "tox-uv==1.36.0",
142
- "uv==0.12.5",
145
+ "uv==0.12.17",
143
146
  ]
144
147
  dev-misc = [
145
- "build>=1.5.0",
146
- "twine>=6.0",
147
- "cryptography>=50.0.0",
148
+ "build>=1.6.1",
149
+ "twine>=7.0.0",
150
+ "cryptography>=50.0.1",
148
151
  "check-wheel-contents>=0.6.3",
149
152
  "pre-commit>=4.6.2",
150
153
  "nodeenv>=1.10.0",
@@ -154,7 +157,7 @@ gui-deps = [
154
157
  "pandas>=2.3.3",
155
158
  "h5py>=3.16.0",
156
159
  "seaborn>=0.13.2",
157
- "dask[distributed]>=2026.7.1",
160
+ "dask[distributed]>=2026.8.0",
158
161
  ]
159
162
  dev-complete = [
160
163
  "adsorpy[test,lint,docs,envs,dev-misc,gui-deps]"
@@ -198,6 +201,7 @@ testpaths = ["tests"]
198
201
  pythonpath = ["."]
199
202
  addopts = ["--cov=adsorpy", "--cov-report=term", "--cov-report=html", "--strict-markers", "--import-mode=importlib"]
200
203
  qt_api = "pyside6"
204
+ env = ["QT_QPA_PLATFORM=offscreen"]
201
205
 
202
206
 
203
207
  [tool.coverage.run]
@@ -206,8 +210,7 @@ omit = [
206
210
  "*/Output/*",
207
211
  "*/__main__.py",
208
212
  "*/__init__.py",
209
- "*/molecule_lib*.py", # There is no point in testing the individual molecules.
210
- "*/rsa_config.py", # Cannot be tested properly. Will be reworked.
213
+ # "*/molecule_lib*.py", # There is no point in testing the individual molecules.
211
214
  "*/sensitivity.py", # Demonstrator, not included.
212
215
  "*/Scripts/*",
213
216
  ]
@@ -244,7 +247,8 @@ exclude_also = [
244
247
  [tool.coverage.paths]
245
248
  source = [
246
249
  "src/", # Local path
247
- ".tox/*lib//site-packages/", # Tox path
250
+ ".tox/*/lib/python*/site-packages/", # Linux / MacOS / CI path
251
+ ".tox\\*\\Lib\\site-packages\\", # Windows path
248
252
  ]
249
253
 
250
254
 
@@ -253,10 +257,18 @@ mypy_path = ["."]
253
257
  ignore_missing_imports = true
254
258
  strict = true
255
259
  disallow_any_explicit = true
256
- #disallow_any_decorated = true # Throws an error because geo.Polygon in a tuple is turned into Any for the @staticmethod.
257
- #warn_unreachable = true # Set this to true when pushing to main?
258
260
  exclude = ['/Scripts']
259
261
  plugins = ["pydantic.mypy"]
262
+ allow_untyped_decorators = true
263
+ native_parser = true
264
+ show_error_end = true
265
+ show_error_code_links = true
266
+ show_error_context = true
267
+ enable_error_code = "exhaustive-match"
268
+
269
+ [[tool.mypy.overrides]]
270
+ module = "tests.*"
271
+ disallow_untyped_calls = false
260
272
 
261
273
 
262
274
  [tool.pydantic-mypy]
@@ -264,7 +276,10 @@ init_forbid_extra = true
264
276
  init_typed = true
265
277
  warn_required_dynamic_aliases = true
266
278
  disallow_subclassing_any = false
267
-
279
+ exhaustive-match = true
280
+ show-error-end = true
281
+ show-error-code-links = true
282
+ native-parser = true
268
283
 
269
284
  [tool.flake8]
270
285
  max-line-length = 120
@@ -362,19 +377,18 @@ reportUnknownMemberType = "none"
362
377
  reportUnknownVariableType = "none"
363
378
  reportUnknownParameterType = "none"
364
379
  reportUnknownArgumentType = "none"
365
- reportUnnecessaryCast = "none" # These are needed for mypy.
366
- reportUnnecessaryIsInstance = "none" # These are needed for mypy.
380
+ #reportUnnecessaryCast = "none" # These are needed for mypy.
381
+ #reportUnnecessaryIsInstance = "none" # These are needed for mypy.
367
382
 
368
383
  # Keep useful strict checks.
369
384
  reportImplicitOverride = "error"
370
385
  reportPrivateUsage = "warning"
371
- reportUnnecessaryTypeIgnoreComment = "warning"
372
386
  reportUnnecessaryComparison = "warning" # These are usually included to prevent the user from breaking things.
373
387
 
374
388
  # Basedpyright options, comment these out when falling back on pyright:
375
389
  typeCheckingMode = "strict" # Comment when using pyright. Options (increasingly strict): "strict", "recommended", "all".
376
390
  failOnWarnings = false # basedpyright by default allows warnings on check but fails warnings on CI. That is inconsistent behaviour, so this disables that.
377
- executionEnvironments = [{ root = "tests", reportPrivateUsage = "none", reportUnnecessaryTypeIgnoreComment = "none" }]
391
+ executionEnvironments = [{ root = "tests", reportPrivateUsage = "none", reportArgumentType = "none"}]
378
392
 
379
393
 
380
394
  [tool.slotscheck]