featomic-torch 0.6.2__tar.gz → 0.7.1__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.
- {featomic_torch-0.6.2/featomic_torch.egg-info → featomic_torch-0.7.1}/PKG-INFO +4 -3
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/build-backend/backend.py +2 -1
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/featomic/torch/_c_lib.py +4 -2
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/featomic/torch/calculator_base.py +1 -3
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/featomic/torch/system.py +4 -4
- featomic_torch-0.7.1/featomic-torch-cxx-0.7.1.tar.gz +0 -0
- {featomic_torch-0.6.2 → featomic_torch-0.7.1/featomic_torch.egg-info}/PKG-INFO +4 -3
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/featomic_torch.egg-info/SOURCES.txt +1 -1
- featomic_torch-0.7.1/featomic_torch.egg-info/requires.txt +4 -0
- featomic_torch-0.7.1/git_version_info +2 -0
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/setup.py +5 -2
- featomic_torch-0.6.2/featomic-torch-cxx-0.6.2.tar.gz +0 -0
- featomic_torch-0.6.2/featomic_torch.egg-info/requires.txt +0 -3
- featomic_torch-0.6.2/git_version_info +0 -2
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/AUTHORS +0 -0
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/LICENSE +0 -0
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/MANIFEST.in +0 -0
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/README.rst +0 -0
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/featomic/torch/__init__.py +0 -0
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/featomic/torch/calculators.py +0 -0
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/featomic/torch/clebsch_gordan.py +0 -0
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/featomic/torch/utils.py +0 -0
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/featomic_torch.egg-info/dependency_links.txt +0 -0
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/featomic_torch.egg-info/not-zip-safe +0 -0
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/featomic_torch.egg-info/top_level.txt +0 -0
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/pyproject.toml +0 -0
- {featomic_torch-0.6.2 → featomic_torch-0.7.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: featomic-torch
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: TorchScript bindings to featomic
|
|
5
5
|
Author: Guillaume Fraux, Philip Loche, Sergei Kliavinek, Kevin Kazuki Huguenin-Dumittan, Davide Tisi, Alexander Goscinski
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -26,8 +26,9 @@ Description-Content-Type: text/x-rst
|
|
|
26
26
|
License-File: LICENSE
|
|
27
27
|
License-File: AUTHORS
|
|
28
28
|
Requires-Dist: torch>=2.1
|
|
29
|
-
Requires-Dist: metatensor-torch<0.
|
|
30
|
-
Requires-Dist:
|
|
29
|
+
Requires-Dist: metatensor-torch<0.9,>=0.8.0
|
|
30
|
+
Requires-Dist: metatomic-torch<0.2,>=0.1.4
|
|
31
|
+
Requires-Dist: featomic<0.7,>=0.6.2
|
|
31
32
|
Dynamic: author
|
|
32
33
|
Dynamic: license-file
|
|
33
34
|
Dynamic: requires-dist
|
|
@@ -5,6 +5,7 @@ import sys
|
|
|
5
5
|
from collections import namedtuple
|
|
6
6
|
|
|
7
7
|
import metatensor.torch
|
|
8
|
+
import metatomic.torch
|
|
8
9
|
import torch
|
|
9
10
|
|
|
10
11
|
import featomic
|
|
@@ -128,9 +129,10 @@ def _check_dll(path):
|
|
|
128
129
|
|
|
129
130
|
|
|
130
131
|
def _load_library():
|
|
131
|
-
# Load
|
|
132
|
-
#
|
|
132
|
+
# Load shared library for dependencies in the process first, to ensure the
|
|
133
|
+
# featomic_torch shared library can find them
|
|
133
134
|
metatensor.torch._c_lib._load_library()
|
|
135
|
+
metatomic.torch._c_lib._load_library()
|
|
134
136
|
|
|
135
137
|
featomic._c_lib._get_library()
|
|
136
138
|
|
|
@@ -2,9 +2,7 @@ from typing import List, Optional, Union
|
|
|
2
2
|
|
|
3
3
|
import torch
|
|
4
4
|
from metatensor.torch import Labels, TensorMap
|
|
5
|
-
from
|
|
6
|
-
|
|
7
|
-
from .system import System
|
|
5
|
+
from metatomic.torch import NeighborListOptions, System
|
|
8
6
|
|
|
9
7
|
|
|
10
8
|
CalculatorHolder = torch.classes.featomic.CalculatorHolder
|
|
@@ -2,7 +2,7 @@ from typing import List, Optional, Sequence, overload
|
|
|
2
2
|
|
|
3
3
|
import numpy as np
|
|
4
4
|
import torch
|
|
5
|
-
from
|
|
5
|
+
from metatomic.torch import System
|
|
6
6
|
|
|
7
7
|
import featomic
|
|
8
8
|
|
|
@@ -31,9 +31,9 @@ def systems_to_torch(
|
|
|
31
31
|
cell_requires_grad=None,
|
|
32
32
|
) -> List[System]:
|
|
33
33
|
"""
|
|
34
|
-
Convert a arbitrary system to
|
|
35
|
-
:py:class:`
|
|
36
|
-
|
|
34
|
+
Convert a arbitrary system to :py:class:`metatomic.torch.System`, putting all the
|
|
35
|
+
data in :py:class:`torch.Tensor` and making the overall object compatible with
|
|
36
|
+
TorchScript.
|
|
37
37
|
|
|
38
38
|
:param system: any system supported by featomic. If this is an iterable of system,
|
|
39
39
|
this function converts them all and returns a list of converted systems.
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: featomic-torch
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: TorchScript bindings to featomic
|
|
5
5
|
Author: Guillaume Fraux, Philip Loche, Sergei Kliavinek, Kevin Kazuki Huguenin-Dumittan, Davide Tisi, Alexander Goscinski
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -26,8 +26,9 @@ Description-Content-Type: text/x-rst
|
|
|
26
26
|
License-File: LICENSE
|
|
27
27
|
License-File: AUTHORS
|
|
28
28
|
Requires-Dist: torch>=2.1
|
|
29
|
-
Requires-Dist: metatensor-torch<0.
|
|
30
|
-
Requires-Dist:
|
|
29
|
+
Requires-Dist: metatensor-torch<0.9,>=0.8.0
|
|
30
|
+
Requires-Dist: metatomic-torch<0.2,>=0.1.4
|
|
31
|
+
Requires-Dist: featomic<0.7,>=0.6.2
|
|
31
32
|
Dynamic: author
|
|
32
33
|
Dynamic: license-file
|
|
33
34
|
Dynamic: requires-dist
|
|
@@ -36,6 +36,7 @@ class cmake_ext(build_ext):
|
|
|
36
36
|
def run(self):
|
|
37
37
|
import metatensor
|
|
38
38
|
import metatensor.torch
|
|
39
|
+
import metatomic.torch
|
|
39
40
|
import torch
|
|
40
41
|
|
|
41
42
|
import featomic
|
|
@@ -51,6 +52,7 @@ class cmake_ext(build_ext):
|
|
|
51
52
|
featomic.utils.cmake_prefix_path,
|
|
52
53
|
metatensor.utils.cmake_prefix_path,
|
|
53
54
|
metatensor.torch.utils.cmake_prefix_path,
|
|
55
|
+
metatomic.torch.utils.cmake_prefix_path,
|
|
54
56
|
torch.utils.cmake_prefix_path,
|
|
55
57
|
]
|
|
56
58
|
|
|
@@ -344,7 +346,8 @@ if __name__ == "__main__":
|
|
|
344
346
|
|
|
345
347
|
install_requires = [
|
|
346
348
|
f"torch {torch_version}",
|
|
347
|
-
"metatensor-torch >=0.
|
|
349
|
+
"metatensor-torch >=0.8.0,<0.9",
|
|
350
|
+
"metatomic-torch >=0.1.4,<0.2",
|
|
348
351
|
]
|
|
349
352
|
|
|
350
353
|
# when packaging a sdist for release, we should never use local dependencies
|
|
@@ -354,7 +357,7 @@ if __name__ == "__main__":
|
|
|
354
357
|
install_requires.append(f"featomic @ file://{FEATOMIC_PYTHON_SRC}")
|
|
355
358
|
else:
|
|
356
359
|
# we are building from a sdist/installing from a wheel
|
|
357
|
-
install_requires.append("featomic >=0.6.
|
|
360
|
+
install_requires.append("featomic >=0.6.2,<0.7")
|
|
358
361
|
|
|
359
362
|
setup(
|
|
360
363
|
version=version,
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|