tensorial 0.6.5__tar.gz → 0.7.0.dev2__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.
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/PKG-INFO +15 -16
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/README.rst +2 -6
- tensorial-0.7.0.dev2/pyproject.toml +318 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/__init__.py +7 -6
- tensorial-0.7.0.dev2/src/tensorial/base.py +502 -0
- tensorial-0.7.0.dev2/src/tensorial/config.py +131 -0
- tensorial-0.7.0.dev2/src/tensorial/data.py +23 -0
- tensorial-0.7.0.dev2/src/tensorial/datasets/__init__.py +11 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/datasets/qm9.py +70 -18
- tensorial-0.7.0.dev2/src/tensorial/datasets/rmd17.py +214 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/README.rst +51 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/data/3bpa.yaml +23 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/data/mad.yaml +22 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/data/qm9.yaml +19 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/data/rmd17.yaml +23 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/data/si.yaml +19 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/data/sitraj.xyz +7260 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/debug/smoke.yaml +19 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/eval.yaml +24 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/extras/default.yaml +8 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/hydra/default.yaml +40 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/lennard_jones.yaml +23 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/listeners/default.yaml +22 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/listeners/early_stopping.yaml +13 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/listeners/metrics_printer.yaml +2 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/listeners/model_checkpoint.yaml +15 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/listeners/model_summary.yaml +3 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/listeners/none.yaml +0 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/listeners/parity_plotter.yaml +5 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/listeners/rich_progress_bar.yaml +2 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/logger/csv.yaml +7 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/logger/many_loggers.yaml +6 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/logger/mlflow.yaml +12 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/logger/tensorboard.yaml +10 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/loss/mlip.yaml +28 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/model/mace.yaml +74 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/model/nequip.yaml +80 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/paths/default.yaml +16 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/profiler/jax.yaml +3 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/train.yaml +85 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/trainer/cpu.yaml +5 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/trainer/ddp.yaml +9 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/trainer/ddp_sim.yaml +7 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/trainer/default.yaml +14 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/trainer/gpu.yaml +5 -0
- tensorial-0.7.0.dev2/src/tensorial/examples/mlip/trainer/mps.yaml +5 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/__init__.py +26 -3
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/_diff.py +90 -48
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/_edgewise.py +43 -15
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/_message_passing.py +41 -17
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/_modules.py +3 -7
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/_nodewise.py +8 -8
- tensorial-0.7.0.dev2/src/tensorial/gcnn/_packing.py +164 -0
- tensorial-0.7.0.dev2/src/tensorial/gcnn/_product_basis.py +586 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/_spatial.py +16 -13
- tensorial-0.7.0.dev2/src/tensorial/gcnn/_tree.py +198 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/atomic/__init__.py +6 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/atomic/_modules.py +13 -14
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/atomic/keys.py +8 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/calc.py +4 -2
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/data/__init__.py +7 -0
- tensorial-0.7.0.dev2/src/tensorial/gcnn/data/_ase.py +408 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/data/_batching.py +143 -30
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/data/_dataloader.py +1 -1
- tensorial-0.7.0.dev2/src/tensorial/gcnn/data/_datamodule.py +656 -0
- tensorial-0.7.0.dev2/src/tensorial/gcnn/data/_urls.py +109 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/derivatives.py +76 -13
- tensorial-0.7.0.dev2/src/tensorial/gcnn/experimental/__init__.py +11 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/experimental/derivatives.py +2 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/experimental/utils.py +37 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/graph_ops.py +51 -5
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/keys.py +16 -0
- tensorial-0.7.0.dev2/src/tensorial/gcnn/losses.py +403 -0
- tensorial-0.7.0.dev2/src/tensorial/gcnn/mace.py +644 -0
- tensorial-0.7.0.dev2/src/tensorial/gcnn/metrics/__init__.py +12 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/metrics/_base.py +56 -32
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/metrics/_contributions.py +4 -2
- tensorial-0.7.0.dev2/src/tensorial/gcnn/nequip.py +385 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/random.py +7 -1
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/typing.py +4 -2
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/utils.py +2 -0
- tensorial-0.7.0.dev2/src/tensorial/geometry/__init__.py +13 -0
- tensorial-0.7.0.dev2/src/tensorial/geometry/distances.py +47 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/geometry/jax_neighbours.py +105 -15
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/geometry/np_neighbours.py +55 -2
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/geometry/unit_cells.py +35 -5
- tensorial-0.7.0.dev2/src/tensorial/mlip/__init__.py +6 -0
- tensorial-0.7.0.dev2/src/tensorial/mlip/_forces.py +38 -0
- tensorial-0.7.0.dev2/src/tensorial/mlip/_stresses.py +154 -0
- tensorial-0.7.0.dev2/src/tensorial/mlip/calculators/__init__.py +3 -0
- tensorial-0.7.0.dev2/src/tensorial/mlip/calculators/ase.py +202 -0
- tensorial-0.7.0.dev2/src/tensorial/mlip/experimental.py +28 -0
- tensorial-0.7.0.dev2/src/tensorial/mlip/io/__init__.py +3 -0
- tensorial-0.7.0.dev2/src/tensorial/mlip/io/n2p2.py +186 -0
- tensorial-0.7.0.dev2/src/tensorial/mlip/keys.py +6 -0
- tensorial-0.7.0.dev2/src/tensorial/mlip/losses.py +74 -0
- tensorial-0.7.0.dev2/src/tensorial/mlip/metrics.py +66 -0
- tensorial-0.7.0.dev2/src/tensorial/mlip/potentials.py +33 -0
- tensorial-0.7.0.dev2/src/tensorial/mlip/stats.py +95 -0
- tensorial-0.7.0.dev2/src/tensorial/mlip/typing.py +3 -0
- tensorial-0.7.0.dev2/src/tensorial/nn.py +134 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/nn_utils.py +20 -2
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/reaxkit/_metrics_printer.py +118 -55
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/reaxkit/_module.py +48 -23
- tensorial-0.7.0.dev2/src/tensorial/reaxkit/cli.py +461 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/reaxkit/config.py +6 -3
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/reaxkit/evaluate.py +40 -8
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/reaxkit/from_data.py +62 -70
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/reaxkit/keys.py +2 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/reaxkit/listeners/__init__.py +2 -0
- tensorial-0.7.0.dev2/src/tensorial/reaxkit/listeners/parity_plotter.py +614 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/reaxkit/train.py +59 -30
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/reaxkit/utils/__init__.py +6 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/reaxkit/utils/instantiators.py +6 -3
- tensorial-0.7.0.dev2/src/tensorial/reaxkit/utils/logging_utils.py +80 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/reaxkit/utils/pylogger.py +33 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/reaxkit/utils/rich_utils.py +14 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/reaxkit/utils/utils.py +20 -10
- tensorial-0.7.0.dev2/src/tensorial/signals/__init__.py +13 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/signals/bases.py +35 -5
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/signals/expansion.py +9 -4
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/signals/functions.py +30 -5
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/signals/radials.py +101 -11
- tensorial-0.7.0.dev2/src/tensorial/tensors.py +244 -0
- tensorial-0.7.0.dev2/src/tensorial/training/__init__.py +20 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/typing.py +24 -11
- tensorial-0.7.0.dev2/src/tensorial/utils.py +176 -0
- tensorial-0.6.5/pyproject.toml +0 -181
- tensorial-0.6.5/src/tensorial/_utils.py +0 -40
- tensorial-0.6.5/src/tensorial/base.py +0 -297
- tensorial-0.6.5/src/tensorial/config.py +0 -11
- tensorial-0.6.5/src/tensorial/datasets/__init__.py +0 -4
- tensorial-0.6.5/src/tensorial/gcnn/_mace.py +0 -593
- tensorial-0.6.5/src/tensorial/gcnn/_nequip.py +0 -213
- tensorial-0.6.5/src/tensorial/gcnn/_tree.py +0 -112
- tensorial-0.6.5/src/tensorial/gcnn/data/_ase.py +0 -70
- tensorial-0.6.5/src/tensorial/gcnn/data/_datamodule.py +0 -197
- tensorial-0.6.5/src/tensorial/gcnn/experimental/__init__.py +0 -5
- tensorial-0.6.5/src/tensorial/gcnn/losses.py +0 -247
- tensorial-0.6.5/src/tensorial/gcnn/metrics/__init__.py +0 -5
- tensorial-0.6.5/src/tensorial/geometry/__init__.py +0 -5
- tensorial-0.6.5/src/tensorial/geometry/distances.py +0 -34
- tensorial-0.6.5/src/tensorial/nn.py +0 -77
- tensorial-0.6.5/src/tensorial/reaxkit/cli.py +0 -84
- tensorial-0.6.5/src/tensorial/reaxkit/listeners/parity_plotter.py +0 -313
- tensorial-0.6.5/src/tensorial/reaxkit/utils/logging_utils.py +0 -54
- tensorial-0.6.5/src/tensorial/signals/__init__.py +0 -3
- tensorial-0.6.5/src/tensorial/tensors.py +0 -158
- tensorial-0.6.5/src/tensorial/training/__init__.py +0 -4
- tensorial-0.6.5/src/tensorial/utils.py +0 -70
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/LICENSE.txt +0 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/_provides.py +0 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/_base.py +0 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/_common.py +0 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/_experimental.py +0 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/atomic/_importing.py +2 -2
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/atomic/_metrics.py +1 -1
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/data/_common.py +0 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/gcnn/data/_graph_padding.py +0 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/reaxkit/__init__.py +0 -0
- {tensorial-0.6.5 → tensorial-0.7.0.dev2}/src/tensorial/training/_module.py +0 -0
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tensorial
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0.dev2
|
|
4
4
|
Summary: Library for machine learning on physical tensors
|
|
5
5
|
Keywords: machine learning,e3nn-jax,physics
|
|
6
6
|
Author-email: Martin Uhrin <martin@digitalbaker.net>
|
|
7
|
-
Requires-Python: >=3.
|
|
7
|
+
Requires-Python: >=3.11
|
|
8
8
|
Description-Content-Type: text/x-rst
|
|
9
9
|
Classifier: Development Status :: 4 - Beta
|
|
10
10
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
|
|
11
11
|
Classifier: Programming Language :: Python
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
13
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.14
|
|
17
16
|
License-File: LICENSE.txt
|
|
18
|
-
Requires-Dist: beartype
|
|
17
|
+
Requires-Dist: beartype>=0.23.1
|
|
18
|
+
Requires-Dist: ase
|
|
19
19
|
Requires-Dist: flax>=0.10.7
|
|
20
20
|
Requires-Dist: hydra-core
|
|
21
|
-
Requires-Dist:
|
|
22
|
-
Requires-Dist:
|
|
21
|
+
Requires-Dist: hydra-colorlog
|
|
22
|
+
Requires-Dist: jax<0.13
|
|
23
|
+
Requires-Dist: jaxlib<0.13
|
|
23
24
|
Requires-Dist: jaxtyping
|
|
24
25
|
Requires-Dist: jraph
|
|
25
26
|
Requires-Dist: pytray
|
|
26
27
|
Requires-Dist: e3nn-jax>=0.21.0
|
|
27
|
-
Requires-Dist:
|
|
28
|
-
Requires-Dist:
|
|
28
|
+
Requires-Dist: reax>=0.7.0.dev6,<0.8
|
|
29
|
+
Requires-Dist: requests
|
|
29
30
|
Requires-Dist: rich
|
|
30
31
|
Requires-Dist: typing-extensions
|
|
31
32
|
Requires-Dist: flit ; extra == "dev"
|
|
@@ -37,8 +38,8 @@ Requires-Dist: pytest-env ; extra == "dev"
|
|
|
37
38
|
Requires-Dist: pytest-codspeed ; extra == "dev"
|
|
38
39
|
Requires-Dist: pre-commit ; extra == "dev"
|
|
39
40
|
Requires-Dist: pylint ; extra == "dev"
|
|
40
|
-
Requires-Dist:
|
|
41
|
-
Requires-Dist:
|
|
41
|
+
Requires-Dist: ruff ; extra == "dev"
|
|
42
|
+
Requires-Dist: ty==0.0.84 ; extra == "dev"
|
|
42
43
|
Requires-Dist: pymatgen ; extra == "dev"
|
|
43
44
|
Requires-Dist: docutils ; extra == "docs"
|
|
44
45
|
Requires-Dist: jupyter ; extra == "docs"
|
|
@@ -47,6 +48,8 @@ Requires-Dist: pandoc ; extra == "docs"
|
|
|
47
48
|
Requires-Dist: pydata_sphinx_theme ; extra == "docs"
|
|
48
49
|
Requires-Dist: sphinx ; extra == "docs"
|
|
49
50
|
Requires-Dist: sphinx-autobuild ; extra == "docs"
|
|
51
|
+
Requires-Dist: sphinx-autodoc-typehints ; extra == "docs"
|
|
52
|
+
Requires-Dist: sphinx-paramlinks ; extra == "docs"
|
|
50
53
|
Project-URL: Home, https://github.com/camml-lab/tensorial
|
|
51
54
|
Project-URL: Source, https://github.com/camml-lab/tensorial
|
|
52
55
|
Provides-Extra: dev
|
|
@@ -78,12 +81,8 @@ tensorial
|
|
|
78
81
|
.. image:: https://img.shields.io/pypi/l/tensorial.svg
|
|
79
82
|
:target: https://pypi.python.org/pypi/tensorial/
|
|
80
83
|
|
|
81
|
-
.. image:: https://img.shields.io/badge/
|
|
82
|
-
:target: https://
|
|
83
|
-
:alt: License
|
|
84
|
-
|
|
85
|
-
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
86
|
-
:target: https://github.com/psf/black
|
|
84
|
+
.. image:: https://img.shields.io/badge/lint-ruff-79C0E6.svg
|
|
85
|
+
:target: https://github.com/astral-sh/ruff
|
|
87
86
|
|
|
88
87
|
Library for machine learning on physical tensors
|
|
89
88
|
|
|
@@ -24,12 +24,8 @@ tensorial
|
|
|
24
24
|
.. image:: https://img.shields.io/pypi/l/tensorial.svg
|
|
25
25
|
:target: https://pypi.python.org/pypi/tensorial/
|
|
26
26
|
|
|
27
|
-
.. image:: https://img.shields.io/badge/
|
|
28
|
-
:target: https://
|
|
29
|
-
:alt: License
|
|
30
|
-
|
|
31
|
-
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
32
|
-
:target: https://github.com/psf/black
|
|
27
|
+
.. image:: https://img.shields.io/badge/lint-ruff-79C0E6.svg
|
|
28
|
+
:target: https://github.com/astral-sh/ruff
|
|
33
29
|
|
|
34
30
|
Library for machine learning on physical tensors
|
|
35
31
|
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ['flit_core >=3.4,<4']
|
|
3
|
+
build-backend = 'flit_core.buildapi'
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = 'tensorial'
|
|
7
|
+
dynamic = ["version", "description"]
|
|
8
|
+
authors = [
|
|
9
|
+
{ name = 'Martin Uhrin', email = 'martin@digitalbaker.net' },
|
|
10
|
+
]
|
|
11
|
+
readme = 'README.rst'
|
|
12
|
+
license = { file = 'LICENSE.txt' }
|
|
13
|
+
classifiers = [
|
|
14
|
+
|
|
15
|
+
'Development Status :: 4 - Beta',
|
|
16
|
+
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
|
|
17
|
+
'Programming Language :: Python',
|
|
18
|
+
'Programming Language :: Python :: 3.11',
|
|
19
|
+
'Programming Language :: Python :: 3.12',
|
|
20
|
+
'Programming Language :: Python :: 3.13',
|
|
21
|
+
'Programming Language :: Python :: 3.14',
|
|
22
|
+
]
|
|
23
|
+
keywords = ['machine learning', 'e3nn-jax', 'physics']
|
|
24
|
+
requires-python = '>=3.11'
|
|
25
|
+
dependencies = [
|
|
26
|
+
'beartype>=0.23.1',
|
|
27
|
+
'ase',
|
|
28
|
+
"flax>=0.10.7",
|
|
29
|
+
"hydra-core",
|
|
30
|
+
"hydra-colorlog",
|
|
31
|
+
'jax<0.13', # Control the JAX version, as previous updates have broken things
|
|
32
|
+
'jaxlib<0.13',
|
|
33
|
+
'jaxtyping',
|
|
34
|
+
'jraph',
|
|
35
|
+
'pytray',
|
|
36
|
+
'e3nn-jax>=0.21.0',
|
|
37
|
+
"reax>=0.7.0.dev6,<0.8",
|
|
38
|
+
"requests",
|
|
39
|
+
"rich",
|
|
40
|
+
"typing-extensions"
|
|
41
|
+
]
|
|
42
|
+
[project.scripts]
|
|
43
|
+
tensorial = "tensorial.reaxkit.cli:main_cli"
|
|
44
|
+
|
|
45
|
+
[project.urls]
|
|
46
|
+
Home = 'https://github.com/camml-lab/tensorial'
|
|
47
|
+
Source = 'https://github.com/camml-lab/tensorial'
|
|
48
|
+
|
|
49
|
+
[project.optional-dependencies]
|
|
50
|
+
docs = [
|
|
51
|
+
'docutils',
|
|
52
|
+
'jupyter', # For running doc examples
|
|
53
|
+
'nbsphinx', # Jupyter notebooks in docs
|
|
54
|
+
'pandoc',
|
|
55
|
+
'pydata_sphinx_theme',
|
|
56
|
+
'sphinx',
|
|
57
|
+
'sphinx-autobuild',
|
|
58
|
+
'sphinx-autodoc-typehints',
|
|
59
|
+
'sphinx-paramlinks',
|
|
60
|
+
]
|
|
61
|
+
dev = [
|
|
62
|
+
'flit',
|
|
63
|
+
'ipython',
|
|
64
|
+
'pandas', # Needed because we optionally support this in some files
|
|
65
|
+
'pytest',
|
|
66
|
+
'pytest-cov',
|
|
67
|
+
'pytest-env',
|
|
68
|
+
"pytest-codspeed",
|
|
69
|
+
'pre-commit',
|
|
70
|
+
'pylint',
|
|
71
|
+
'ruff',
|
|
72
|
+
'ty==0.0.84',
|
|
73
|
+
# Optional external libraries that we interact with
|
|
74
|
+
"pymatgen",
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
[tool.flit.module]
|
|
78
|
+
name = 'tensorial'
|
|
79
|
+
|
|
80
|
+
[project.entry-points."reax.plugins.batch_sizers"]
|
|
81
|
+
native = "tensorial._provides:get_batch_sizers"
|
|
82
|
+
|
|
83
|
+
[tool.flit.sdist]
|
|
84
|
+
exclude = [
|
|
85
|
+
'.github/',
|
|
86
|
+
'docs/',
|
|
87
|
+
'examples/',
|
|
88
|
+
]
|
|
89
|
+
|
|
90
|
+
[project.entry-points."reax.plugins.metrics"]
|
|
91
|
+
"atomic/num_species" = "tensorial.gcnn.atomic:NumSpecies"
|
|
92
|
+
"atomic/all_atomic_numbers" = "tensorial.gcnn.atomic:AllAtomicNumbers"
|
|
93
|
+
"atomic/avg_num_neighbours" = "tensorial.gcnn.atomic:AvgNumNeighbours"
|
|
94
|
+
"atomic/force_std" = "tensorial.gcnn.atomic:ForceStd"
|
|
95
|
+
"atomic/energy_per_atom_lstsq" = "tensorial.gcnn.atomic:EnergyPerAtomLstsq"
|
|
96
|
+
"atomic/energy_per_atom_rmse" = "tensorial.mlip.metrics:EnergyPerAtomRmse"
|
|
97
|
+
"atomic/energy_per_atom_mae" = "tensorial.mlip.metrics:EnergyPerAtomMae"
|
|
98
|
+
"atomic/force_rmse" = "tensorial.mlip.metrics:ForceRmse"
|
|
99
|
+
"atomic/stress_rmse" = "tensorial.mlip.metrics:StressRmse"
|
|
100
|
+
|
|
101
|
+
[tool.flynt]
|
|
102
|
+
line-length = 100
|
|
103
|
+
fail-on-change = true
|
|
104
|
+
|
|
105
|
+
[tool.ruff]
|
|
106
|
+
line-length = 100
|
|
107
|
+
target-version = "py311"
|
|
108
|
+
extend-exclude = [
|
|
109
|
+
'.git',
|
|
110
|
+
'__pycache__',
|
|
111
|
+
'dist',
|
|
112
|
+
'build',
|
|
113
|
+
'.venv',
|
|
114
|
+
'docs',
|
|
115
|
+
'data',
|
|
116
|
+
'local',
|
|
117
|
+
'notebooks',
|
|
118
|
+
'.codspeed',
|
|
119
|
+
'.idea',
|
|
120
|
+
]
|
|
121
|
+
|
|
122
|
+
[tool.ruff.lint]
|
|
123
|
+
select = [
|
|
124
|
+
'E', # pycodestyle errors
|
|
125
|
+
'F', # pyflakes
|
|
126
|
+
'W', # pycodestyle warnings
|
|
127
|
+
'C90', # mccabe complexity
|
|
128
|
+
'I', # isort
|
|
129
|
+
'UP', # pyupgrade
|
|
130
|
+
]
|
|
131
|
+
extend-ignore = [
|
|
132
|
+
'E203', # Whitespace before punctuation
|
|
133
|
+
'E266', # Too many leading '#' for block comment
|
|
134
|
+
'E501', # Line too long (handled by formatter)
|
|
135
|
+
'F403', # 'from module import *' used; unable to detect undefined names
|
|
136
|
+
'F401', # module imported but unused
|
|
137
|
+
'F821', # undefined name
|
|
138
|
+
'F722', # error message is string constant
|
|
139
|
+
'UP037', # Remove quotes from type annotation
|
|
140
|
+
]
|
|
141
|
+
|
|
142
|
+
[tool.ruff.lint.isort]
|
|
143
|
+
force-sort-within-sections = true
|
|
144
|
+
|
|
145
|
+
[tool.ruff.lint.mccabe]
|
|
146
|
+
max-complexity = 18
|
|
147
|
+
|
|
148
|
+
[tool.ty.src]
|
|
149
|
+
# TODO: These files have outstanding ty errors, remove them from this list as they are fixed
|
|
150
|
+
exclude = [
|
|
151
|
+
'src/tensorial/base.py',
|
|
152
|
+
'src/tensorial/datasets/qm9.py',
|
|
153
|
+
'src/tensorial/gcnn/atomic/_importing.py',
|
|
154
|
+
'src/tensorial/gcnn/atomic/_metrics.py',
|
|
155
|
+
'src/tensorial/gcnn/atomic/_modules.py',
|
|
156
|
+
'src/tensorial/gcnn/_base.py',
|
|
157
|
+
'src/tensorial/gcnn/data/_ase.py',
|
|
158
|
+
'src/tensorial/gcnn/data/_batching.py',
|
|
159
|
+
'src/tensorial/gcnn/data/_dataloader.py',
|
|
160
|
+
'src/tensorial/gcnn/data/_datamodule.py',
|
|
161
|
+
'src/tensorial/gcnn/data/_graph_padding.py',
|
|
162
|
+
'src/tensorial/gcnn/derivatives.py',
|
|
163
|
+
'src/tensorial/gcnn/_diff.py',
|
|
164
|
+
'src/tensorial/gcnn/_edgewise.py',
|
|
165
|
+
'src/tensorial/gcnn/_experimental.py',
|
|
166
|
+
'src/tensorial/gcnn/experimental/utils.py',
|
|
167
|
+
'src/tensorial/gcnn/graph_ops.py',
|
|
168
|
+
'src/tensorial/gcnn/losses.py',
|
|
169
|
+
'src/tensorial/gcnn/mace.py',
|
|
170
|
+
'src/tensorial/gcnn/_message_passing.py',
|
|
171
|
+
'src/tensorial/gcnn/metrics/_base.py',
|
|
172
|
+
'src/tensorial/gcnn/metrics/_contributions.py',
|
|
173
|
+
'src/tensorial/gcnn/_modules.py',
|
|
174
|
+
'src/tensorial/gcnn/nequip.py',
|
|
175
|
+
'src/tensorial/gcnn/_nodewise.py',
|
|
176
|
+
'src/tensorial/gcnn/_packing.py',
|
|
177
|
+
'src/tensorial/gcnn/_product_basis.py',
|
|
178
|
+
'src/tensorial/gcnn/random.py',
|
|
179
|
+
'src/tensorial/gcnn/_spatial.py',
|
|
180
|
+
'src/tensorial/geometry/distances.py',
|
|
181
|
+
'src/tensorial/geometry/jax_neighbours.py',
|
|
182
|
+
'src/tensorial/geometry/np_neighbours.py',
|
|
183
|
+
'src/tensorial/geometry/unit_cells.py',
|
|
184
|
+
'src/tensorial/mlip/calculators/ase.py',
|
|
185
|
+
'src/tensorial/mlip/experimental.py',
|
|
186
|
+
'src/tensorial/mlip/_forces.py',
|
|
187
|
+
'src/tensorial/mlip/io/n2p2.py',
|
|
188
|
+
'src/tensorial/mlip/potentials.py',
|
|
189
|
+
'src/tensorial/_provides.py',
|
|
190
|
+
'src/tensorial/reaxkit/config.py',
|
|
191
|
+
'src/tensorial/reaxkit/evaluate.py',
|
|
192
|
+
'src/tensorial/reaxkit/_module.py',
|
|
193
|
+
'src/tensorial/reaxkit/train.py',
|
|
194
|
+
'src/tensorial/reaxkit/utils/logging_utils.py',
|
|
195
|
+
'src/tensorial/reaxkit/utils/rich_utils.py',
|
|
196
|
+
'src/tensorial/reaxkit/utils/utils.py',
|
|
197
|
+
'src/tensorial/signals/bases.py',
|
|
198
|
+
'src/tensorial/signals/expansion.py',
|
|
199
|
+
'src/tensorial/signals/functions.py',
|
|
200
|
+
'src/tensorial/signals/radials.py',
|
|
201
|
+
'src/tensorial/tensors.py',
|
|
202
|
+
'src/tensorial/typing.py',
|
|
203
|
+
'src/tensorial/utils.py',
|
|
204
|
+
'tests/benchmarks/test_graph_batching.py',
|
|
205
|
+
'tests/conftest.py',
|
|
206
|
+
'tests/unit/gcnn/atomic/conftest.py',
|
|
207
|
+
'tests/unit/gcnn/atomic/test_atomic.py',
|
|
208
|
+
'tests/unit/gcnn/conftest.py',
|
|
209
|
+
'tests/unit/gcnn/data/test_ase.py',
|
|
210
|
+
'tests/unit/gcnn/data/test_distributed_sampler_chunking.py',
|
|
211
|
+
'tests/unit/gcnn/data/test_graph_batcher.py',
|
|
212
|
+
'tests/unit/gcnn/data/test_graph_datamodule.py',
|
|
213
|
+
'tests/unit/gcnn/data/test_graph_loader.py',
|
|
214
|
+
'tests/unit/gcnn/test_common.py',
|
|
215
|
+
'tests/unit/gcnn/test_derivatives.py',
|
|
216
|
+
'tests/unit/gcnn/test_diff.py',
|
|
217
|
+
'tests/unit/gcnn/test_edgewise.py',
|
|
218
|
+
'tests/unit/gcnn/test_gcnn_base.py',
|
|
219
|
+
'tests/unit/gcnn/test_graph_ops.py',
|
|
220
|
+
'tests/unit/gcnn/test_graphs.py',
|
|
221
|
+
'tests/unit/gcnn/test_losses.py',
|
|
222
|
+
'tests/unit/gcnn/test_mace.py',
|
|
223
|
+
'tests/unit/gcnn/test_message_passing.py',
|
|
224
|
+
'tests/unit/gcnn/test_metrics.py',
|
|
225
|
+
'tests/unit/gcnn/test_modules.py',
|
|
226
|
+
'tests/unit/gcnn/test_nequip.py',
|
|
227
|
+
'tests/unit/gcnn/test_nodewise.py',
|
|
228
|
+
'tests/unit/gcnn/test_packing.py',
|
|
229
|
+
'tests/unit/gcnn/test_product_basis.py',
|
|
230
|
+
'tests/unit/mlip/test_experimental.py',
|
|
231
|
+
'tests/unit/reaxkit/listeners/test_parity_plotter.py',
|
|
232
|
+
'tests/unit/reaxkit/test_listeners.py',
|
|
233
|
+
'tests/unit/reaxkit/test_module.py',
|
|
234
|
+
'tests/unit/signals/test_radials.py',
|
|
235
|
+
'tests/unit/test_base.py',
|
|
236
|
+
'tests/unit/test_geometry.py',
|
|
237
|
+
'tests/unit/test_nn.py',
|
|
238
|
+
'tests/unit/test_utils.py',
|
|
239
|
+
'tests/utils.py',
|
|
240
|
+
]
|
|
241
|
+
|
|
242
|
+
[tool.pylint.format]
|
|
243
|
+
max-line-length = 100
|
|
244
|
+
|
|
245
|
+
[tool.pylint.messages_control]
|
|
246
|
+
disable = [
|
|
247
|
+
# Unfortunately jaxtyping decorator creates a function that seems to mistakenly be identified as
|
|
248
|
+
# not returning anything, so we have to disable the error below for now
|
|
249
|
+
'assignment-from-no-return',
|
|
250
|
+
'duplicate-code',
|
|
251
|
+
'import-outside-toplevel',
|
|
252
|
+
'missing-docstring',
|
|
253
|
+
'locally-disabled',
|
|
254
|
+
'too-few-public-methods',
|
|
255
|
+
'too-many-arguments',
|
|
256
|
+
'too-many-instance-attributes',
|
|
257
|
+
'use-dict-literal',
|
|
258
|
+
'fixme',
|
|
259
|
+
]
|
|
260
|
+
|
|
261
|
+
[tool.pylint.design]
|
|
262
|
+
max-locals = 20
|
|
263
|
+
max-positional-arguments = 11
|
|
264
|
+
max-branches = 14
|
|
265
|
+
|
|
266
|
+
[pytest]
|
|
267
|
+
log_cli = "True"
|
|
268
|
+
log_cli_level = "DEBUG"
|
|
269
|
+
|
|
270
|
+
[tool.pytest_env]
|
|
271
|
+
XLA_PYTHON_CLIENT_PREALLOCATE = false # Don't allow JAX to preallocate memory
|
|
272
|
+
|
|
273
|
+
[tool.pytest.ini_options]
|
|
274
|
+
minversion = '6.0'
|
|
275
|
+
testpaths = [
|
|
276
|
+
'test',
|
|
277
|
+
]
|
|
278
|
+
filterwarnings = [
|
|
279
|
+
'ignore::DeprecationWarning:frozendict:',
|
|
280
|
+
# Hydra >= 1.4: all instantiation must go through tensorial.config, which passes a whitelist
|
|
281
|
+
'error:hydra\.utils\.instantiate\(\) resolved _target_=:UserWarning',
|
|
282
|
+
'error:Hydra configured Python logging without an execution whitelist:UserWarning',
|
|
283
|
+
]
|
|
284
|
+
#addopts = "--jaxtyping-packages=tensorial,beartype.beartype"
|
|
285
|
+
|
|
286
|
+
[tool.yapf]
|
|
287
|
+
align_closing_bracket_with_visual_indent = true
|
|
288
|
+
based_on_style = 'google'
|
|
289
|
+
coalesce_brackets = true
|
|
290
|
+
column_limit = 100
|
|
291
|
+
dedent_closing_brackets = true
|
|
292
|
+
indent_dictionary_value = false
|
|
293
|
+
split_arguments_when_comma_terminated = true
|
|
294
|
+
|
|
295
|
+
[tool.tox]
|
|
296
|
+
legacy_tox_ini = """
|
|
297
|
+
[tox]
|
|
298
|
+
envlist = py313
|
|
299
|
+
|
|
300
|
+
[testenv]
|
|
301
|
+
usedevelop = true
|
|
302
|
+
|
|
303
|
+
[testenv:py{311,312,313,314}]
|
|
304
|
+
description = Run the unit tests
|
|
305
|
+
extras =
|
|
306
|
+
dev
|
|
307
|
+
commands = pytest {posargs}
|
|
308
|
+
|
|
309
|
+
[testenv:pre-commit]
|
|
310
|
+
description = Run the style checks and formatting
|
|
311
|
+
extras =
|
|
312
|
+
dev
|
|
313
|
+
commands = pre-commit run {posargs}
|
|
314
|
+
|
|
315
|
+
[pytest]
|
|
316
|
+
filterwarnings =
|
|
317
|
+
ignore::DeprecationWarning:distutils:
|
|
318
|
+
"""
|
|
@@ -3,33 +3,34 @@
|
|
|
3
3
|
from . import (
|
|
4
4
|
base,
|
|
5
5
|
config,
|
|
6
|
+
data,
|
|
6
7
|
datasets,
|
|
7
8
|
gcnn,
|
|
8
9
|
geometry,
|
|
10
|
+
reaxkit,
|
|
9
11
|
tensors,
|
|
10
|
-
training,
|
|
11
12
|
typing,
|
|
12
13
|
utils,
|
|
13
14
|
)
|
|
14
15
|
from .base import *
|
|
16
|
+
from .reaxkit import ReaxModule
|
|
15
17
|
from .tensors import *
|
|
16
|
-
from .
|
|
17
|
-
from .training import ReaxModule
|
|
18
|
+
from .utils import make_irreps
|
|
18
19
|
|
|
19
|
-
__version__ = "0.
|
|
20
|
+
__version__ = "0.7.0.dev2"
|
|
20
21
|
|
|
21
22
|
__all__ = (
|
|
22
23
|
base.__all__
|
|
23
24
|
+ tensors.__all__
|
|
24
|
-
+ training.__all__
|
|
25
25
|
+ (
|
|
26
|
+
"data",
|
|
26
27
|
"datasets",
|
|
27
28
|
"config",
|
|
28
29
|
"gcnn",
|
|
29
30
|
"geometry",
|
|
30
|
-
"training",
|
|
31
31
|
"typing",
|
|
32
32
|
"ReaxModule",
|
|
33
|
+
"make_irreps",
|
|
33
34
|
"utils",
|
|
34
35
|
)
|
|
35
36
|
)
|