graphatoms 2.2.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.
Files changed (95) hide show
  1. {graphatoms-2.2.0 → graphatoms-2.3.0}/PKG-INFO +2 -1
  2. {graphatoms-2.2.0 → graphatoms-2.3.0}/pyproject.toml +4 -1
  3. {graphatoms-2.2.0 → graphatoms-2.3.0}/pyproject.toml.orig +4 -1
  4. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/config/__init__.py +6 -3
  5. graphatoms-2.3.0/src/graphatoms/enterpoint/network/__init__.py +11 -0
  6. graphatoms-2.3.0/src/graphatoms/enterpoint/network/_clsnetwork.py +661 -0
  7. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/network/_metadata.py +23 -7
  8. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/network/_recorder.py +90 -13
  9. graphatoms-2.3.0/src/graphatoms/enterpoint/parallel/__init__.py +158 -0
  10. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/parallel/_base.py +1 -0
  11. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/parallel/_dask.py +1 -2
  12. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/parallel/_executorlib.py +1 -2
  13. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/parallel/_ray.py +12 -3
  14. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/runner/__init__.py +7 -4
  15. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/runner/common/_base.py +159 -79
  16. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/runner/common/_helper.py +235 -86
  17. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/runner/general/_expl.py +76 -183
  18. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/runner/general/otfkmc.py +3 -3
  19. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/runner/general/rxngen.py +1 -2
  20. graphatoms-2.3.0/src/graphatoms/enterpoint/runner/v2/_helperv2.py +427 -0
  21. graphatoms-2.3.0/src/graphatoms/enterpoint/runner/v2/general/__init__.py +0 -0
  22. graphatoms-2.3.0/src/graphatoms/enterpoint/runner/v2/general/_expl.py +149 -0
  23. graphatoms-2.3.0/src/graphatoms/enterpoint/runner/v2/general/otfkmc.py +16 -0
  24. graphatoms-2.3.0/src/graphatoms/enterpoint/runner/v2/general/rxngen.py +18 -0
  25. graphatoms-2.3.0/src/graphatoms/enterpoint/runner/v2/ray/__init__.py +0 -0
  26. graphatoms-2.3.0/src/graphatoms/enterpoint/runner/v2/ray/_expl.py +52 -0
  27. graphatoms-2.3.0/src/graphatoms/enterpoint/runner/v2/ray/_helper.py +183 -0
  28. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/view.py +7 -12
  29. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/reaction/_event.py +8 -2
  30. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/reaction/xxsorption.py +8 -3
  31. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/system/database/abc.py +1 -1
  32. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/system/sysGas.py +1 -1
  33. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/utils/adsorption.py +2 -2
  34. graphatoms-2.3.0/src/graphatoms/utils/aseqhull.py +89 -0
  35. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/utils/asetools.py +13 -4
  36. graphatoms-2.2.0/src/graphatoms/enterpoint/network/__init__.py +0 -330
  37. graphatoms-2.2.0/src/graphatoms/enterpoint/parallel/__init__.py +0 -66
  38. graphatoms-2.2.0/src/graphatoms/enterpoint/runner/ray/_expl.py +0 -36
  39. {graphatoms-2.2.0 → graphatoms-2.3.0}/README.md +0 -0
  40. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/LICENSE +0 -0
  41. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/__init__.py +0 -0
  42. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/arrayapi/__init__.py +0 -0
  43. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/arrayapi/compat.py +0 -0
  44. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/arrayapi/typing.py +0 -0
  45. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/dataclasses/__init__.py +0 -0
  46. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/dataclasses/_numpydantic.py +0 -0
  47. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/dataclasses/_pydantic2pyarrow.py +0 -0
  48. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/dataclasses/_pydanticMixin.py +0 -0
  49. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/dataclasses/_pydanticModel.py +0 -0
  50. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/dataclasses/graph.py +0 -0
  51. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/__init__.py +0 -0
  52. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/config/atoms/__init__.py +0 -0
  53. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/config/atoms/aseread.yaml +0 -0
  54. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/config/atoms/octahedron.yaml +0 -0
  55. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/config/bonds/__init__.py +0 -0
  56. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/config/bonds/raw.yaml +0 -0
  57. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/config/calculator/__init__.py +0 -0
  58. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/config/calculator/emt.yaml +0 -0
  59. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/config/calculator/nequip.yaml +0 -0
  60. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/config/example.yaml +0 -0
  61. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/config/run.yaml +0 -0
  62. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/network/_scheduler.py +0 -0
  63. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/runner/common/__init__.py +0 -0
  64. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/runner/common/_errors.py +0 -0
  65. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/enterpoint/runner/general/__init__.py +0 -0
  66. {graphatoms-2.2.0/src/graphatoms/enterpoint/runner/ray → graphatoms-2.3.0/src/graphatoms/enterpoint/runner/v2}/__init__.py +0 -0
  67. {graphatoms-2.2.0/src/graphatoms/enterpoint/runner → graphatoms-2.3.0/src/graphatoms/enterpoint/runner/v2}/ray/otfkmc.py +0 -0
  68. {graphatoms-2.2.0/src/graphatoms/enterpoint/runner → graphatoms-2.3.0/src/graphatoms/enterpoint/runner/v2}/ray/rxngen.py +0 -0
  69. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/geometry/__init__.py +0 -0
  70. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/geometry/_bond_list.py +0 -0
  71. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/geometry/_distance_pairs.py +0 -0
  72. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/geometry/_inner_outer.py +0 -0
  73. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/geometry/_neighbor_list.py +0 -0
  74. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/geometry/mic.py +0 -0
  75. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/geometry/rotation.py +0 -0
  76. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/geometry/sample.py +0 -0
  77. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/reaction/__init__.py +0 -0
  78. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/reaction/reaction.py +0 -0
  79. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/system/__init__.py +0 -0
  80. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/system/atoms.py +0 -0
  81. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/system/bonds.py +0 -0
  82. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/system/database/__init__.py +0 -0
  83. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/system/database/dict.py +0 -0
  84. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/system/database/dir.py +0 -0
  85. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/system/database/hdf5.py +0 -0
  86. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/system/database/sqliteASE.py +0 -0
  87. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/system/graph.py +0 -0
  88. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/system/sysCluster.py +0 -0
  89. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/system/system.py +0 -0
  90. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/utils/__init__.py +0 -0
  91. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/utils/bytestool.py +0 -0
  92. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/utils/logger.py +0 -0
  93. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/utils/parser.py +0 -0
  94. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/utils/rdutils.py +0 -0
  95. {graphatoms-2.2.0 → graphatoms-2.3.0}/src/graphatoms/utils/subgraph.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graphatoms
3
- Version: 2.2.0
3
+ Version: 2.3.0
4
4
  Summary: The Chemical Core Class for Graph Theory Analysis.
5
5
  Keywords: chemistry,graph theory,reaction,event,KMC
6
6
  Author: LiuGaoyong
@@ -29,6 +29,7 @@ Requires-Dist: python-snappy>=0.7.3
29
29
  Requires-Dist: tomli ; python_full_version < '3.11'
30
30
  Requires-Dist: tomli-w
31
31
  Requires-Dist: typing-extensions
32
+ Requires-Dist: joblib
32
33
  Requires-Dist: executorlib
33
34
  Requires-Dist: hydra-core
34
35
  Requires-Dist: typer
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "graphatoms"
7
- version = "2.2.0"
7
+ version = "2.3.0"
8
8
  readme = "README.md"
9
9
  description = "The Chemical Core Class for Graph Theory Analysis."
10
10
  license-files = ["src/LICENSE"]
@@ -42,6 +42,7 @@ dependencies = [
42
42
  "tomli; python_version < '3.11'",
43
43
  "tomli-w",
44
44
  "typing-extensions",
45
+ "joblib",
45
46
  "executorlib",
46
47
  "hydra-core",
47
48
  "typer",
@@ -165,7 +166,9 @@ hydra-core = ">=1.3.2,<2"
165
166
  tomli-w = ">=1.2.0,<2"
166
167
  loguru = ">=0.7.3,<0.8"
167
168
  jupyterlab = ">=4.5.8,<5"
169
+ joblib = ">=1.1.0,<2"
168
170
  ovld = ">=0.5.15,<0.6"
169
171
  pytest-xdist = ">=3.8.0,<4"
170
172
  executorlib = ">=1.8,<2"
171
173
  typer = ">=0.20,<1"
174
+ grpcio = ">=1.52.0,<2"
@@ -12,7 +12,7 @@ graphatoms-network = "graphatoms.enterpoint.view:main"
12
12
  graphatoms-run = "graphatoms.enterpoint.runner:run"
13
13
  [project]
14
14
  name = "graphatoms"
15
- version = "2.2.0"
15
+ version = "2.3.0"
16
16
  readme = "README.md"
17
17
  description = "The Chemical Core Class for Graph Theory Analysis."
18
18
  authors = [{ name = "LiuGaoyong", email = "liugaoyong_88@163.com" }]
@@ -60,6 +60,7 @@ dependencies = [
60
60
  "typing-extensions",
61
61
 
62
62
  # Other
63
+ "joblib",
63
64
  "executorlib",
64
65
  "hydra-core",
65
66
  "typer",
@@ -164,7 +165,9 @@ hydra-core = ">=1.3.2,<2"
164
165
  tomli-w = ">=1.2.0,<2"
165
166
  loguru = ">=0.7.3,<0.8"
166
167
  jupyterlab = ">=4.5.8,<5"
168
+ joblib = ">=1.1.0,<2"
167
169
  ovld = ">=0.5.15,<0.6"
168
170
  pytest-xdist = ">=3.8.0,<4"
169
171
  executorlib = ">=1.8,<2"
170
172
  typer = ">=0.20,<1"
173
+ grpcio = ">=1.52.0,<2"
@@ -1,5 +1,4 @@
1
1
  import os
2
- from collections import defaultdict
3
2
  from dataclasses import dataclass, field
4
3
  from pathlib import Path
5
4
  from typing import Any
@@ -35,7 +34,10 @@ class ExplConfig:
35
34
  allow_multiple_adsorption: bool = False
36
35
  allow_explore_bulk: bool = False
37
36
  thetacutoff: float = -1 # 0-180, -1 means no cutoff
38
- nfibonacci: int = 200
37
+ step_distance: float = 0.4 # the step distance for adsorption
38
+ min_distance: float = 1.0 # the minimum distance for adsorption
39
+ max_distance: float = 3.0 # the maximum distance for adsorption
40
+ nfibonacci: int = 10 # the number of fibonacci points for adsorption
39
41
 
40
42
 
41
43
  @dataclass
@@ -46,7 +48,7 @@ class EventConfig:
46
48
  min_frequency: float = 10.0 # cm^-1
47
49
  min_frequency_for_ts: float = 20.0 # cm^-1
48
50
  simplified_threshold: float = 7.0 # the simplified threshold for event
49
- gas_sticking: dict[str, float] = field(default_factory=dict)
51
+ gas_sticking: dict[str, float] = field(default_factory=dict) # MISSING
50
52
  temperature: float = 300
51
53
 
52
54
 
@@ -77,6 +79,7 @@ class Config:
77
79
  # 1. if the key of `gas_sticking` is not in `initial_gas_pressure`, then the gas sticking is 1.0 # noqa: E501
78
80
 
79
81
  parallel_workers: int = 0 # 0 means use all cores
82
+ parallel_ncpus_for_tasks: int = 1 # the number of cpus for tasks, only effect for `parallel=ray` # noqa: E501
80
83
  parallel: str = "serial" # serial, multiprocessing, ray, dask, executorlib
81
84
  loglevel: str = "info" # Literal["debug", "info", "warning", "error"]
82
85
  logfile: str = "log.txt"
@@ -0,0 +1,11 @@
1
+ from ._clsnetwork import ReactionNetwork
2
+ from ._metadata import MetaData
3
+ from ._recorder import Recorder
4
+ from ._scheduler import Scheduler
5
+
6
+ __all__ = [
7
+ "MetaData",
8
+ "Recorder",
9
+ "Scheduler",
10
+ "ReactionNetwork",
11
+ ]