featomic-torch 0.6.2__tar.gz → 0.7.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 (26) hide show
  1. {featomic_torch-0.6.2/featomic_torch.egg-info → featomic_torch-0.7.0}/PKG-INFO +2 -1
  2. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/build-backend/backend.py +2 -1
  3. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/featomic/torch/_c_lib.py +4 -2
  4. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/featomic/torch/calculator_base.py +1 -3
  5. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/featomic/torch/system.py +4 -4
  6. featomic_torch-0.7.0/featomic-torch-cxx-0.7.0.tar.gz +0 -0
  7. {featomic_torch-0.6.2 → featomic_torch-0.7.0/featomic_torch.egg-info}/PKG-INFO +2 -1
  8. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/featomic_torch.egg-info/SOURCES.txt +1 -1
  9. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/featomic_torch.egg-info/requires.txt +1 -0
  10. featomic_torch-0.7.0/git_version_info +2 -0
  11. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/setup.py +3 -0
  12. featomic_torch-0.6.2/featomic-torch-cxx-0.6.2.tar.gz +0 -0
  13. featomic_torch-0.6.2/git_version_info +0 -2
  14. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/AUTHORS +0 -0
  15. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/LICENSE +0 -0
  16. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/MANIFEST.in +0 -0
  17. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/README.rst +0 -0
  18. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/featomic/torch/__init__.py +0 -0
  19. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/featomic/torch/calculators.py +0 -0
  20. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/featomic/torch/clebsch_gordan.py +0 -0
  21. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/featomic/torch/utils.py +0 -0
  22. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/featomic_torch.egg-info/dependency_links.txt +0 -0
  23. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/featomic_torch.egg-info/not-zip-safe +0 -0
  24. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/featomic_torch.egg-info/top_level.txt +0 -0
  25. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/pyproject.toml +0 -0
  26. {featomic_torch-0.6.2 → featomic_torch-0.7.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: featomic-torch
3
- Version: 0.6.2
3
+ Version: 0.7.0
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
@@ -27,6 +27,7 @@ License-File: LICENSE
27
27
  License-File: AUTHORS
28
28
  Requires-Dist: torch>=2.1
29
29
  Requires-Dist: metatensor-torch<0.8,>=0.7.6
30
+ Requires-Dist: metatomic-torch<0.2,>=0.1.1
30
31
  Requires-Dist: featomic<0.7.0,>=0.6.0
31
32
  Dynamic: author
32
33
  Dynamic: license-file
@@ -42,6 +42,7 @@ def get_requires_for_build_wheel(config_settings=None):
42
42
  return defaults + [
43
43
  "cmake",
44
44
  TORCH_DEP,
45
- "metatensor-torch >=0.7.0,<0.8.0",
45
+ "metatensor-torch >=0.7.6,<0.8",
46
+ "metatomic-torch >=0.1.1,<0.2",
46
47
  FEATOMIC_DEP,
47
48
  ]
@@ -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 featomic & metatensor-torch shared library in the process first, to ensure
132
- # the featomic_torch shared library can find them
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 metatensor.torch.atomistic import NeighborListOptions
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 metatensor.torch.atomistic import System
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 metatensor's atomistic
35
- :py:class:`metatensor.torch.atomistic.System`, putting all the data in
36
- :py:class:`torch.Tensor` and making the overall object compatible with TorchScript.
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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: featomic-torch
3
- Version: 0.6.2
3
+ Version: 0.7.0
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
@@ -27,6 +27,7 @@ License-File: LICENSE
27
27
  License-File: AUTHORS
28
28
  Requires-Dist: torch>=2.1
29
29
  Requires-Dist: metatensor-torch<0.8,>=0.7.6
30
+ Requires-Dist: metatomic-torch<0.2,>=0.1.1
30
31
  Requires-Dist: featomic<0.7.0,>=0.6.0
31
32
  Dynamic: author
32
33
  Dynamic: license-file
@@ -2,7 +2,7 @@ AUTHORS
2
2
  LICENSE
3
3
  MANIFEST.in
4
4
  README.rst
5
- featomic-torch-cxx-0.6.2.tar.gz
5
+ featomic-torch-cxx-0.7.0.tar.gz
6
6
  git_version_info
7
7
  pyproject.toml
8
8
  setup.py
@@ -1,3 +1,4 @@
1
1
  torch>=2.1
2
2
  metatensor-torch<0.8,>=0.7.6
3
+ metatomic-torch<0.2,>=0.1.1
3
4
  featomic<0.7.0,>=0.6.0
@@ -0,0 +1,2 @@
1
+ 0
2
+ git.2a75617
@@ -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
 
@@ -345,6 +347,7 @@ if __name__ == "__main__":
345
347
  install_requires = [
346
348
  f"torch {torch_version}",
347
349
  "metatensor-torch >=0.7.6,<0.8",
350
+ "metatomic-torch >=0.1.1,<0.2",
348
351
  ]
349
352
 
350
353
  # when packaging a sdist for release, we should never use local dependencies
@@ -1,2 +0,0 @@
1
- 0
2
- git.0a393b3
File without changes
File without changes
File without changes