metatensor-core 0.2.1__tar.gz → 0.2.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.
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/CMakeLists.txt +1 -1
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/PKG-INFO +1 -1
- metatensor_core-0.2.2/git_version_info +2 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/_labels.py +4 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/_tensor.py +5 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/io/_utils.py +8 -4
- metatensor_core-0.2.2/metatensor-core-cxx-0.2.2.tar.gz +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor_core.egg-info/PKG-INFO +1 -1
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor_core.egg-info/SOURCES.txt +1 -1
- metatensor_core-0.2.1/git_version_info +0 -2
- metatensor_core-0.2.1/metatensor-core-cxx-0.2.1.tar.gz +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/AUTHORS +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/LICENSE +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/MANIFEST.in +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/README.rst +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/__init__.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/_block.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/_c_api.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/_c_lib.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/_data/__init__.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/_data/_array.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/_data/_dlpack.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/_data/_extract.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/_status.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/_version.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/io/__init__.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/io/_block.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/io/_labels.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/io/_tensor.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/learn.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/operations.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/torch.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor/utils.py +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor_core.egg-info/dependency_links.txt +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor_core.egg-info/not-zip-safe +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor_core.egg-info/requires.txt +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor_core.egg-info/top_level.txt +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/pyproject.toml +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/setup.cfg +0 -0
- {metatensor_core-0.2.1 → metatensor_core-0.2.2}/setup.py +0 -0
|
@@ -14,7 +14,7 @@ set(METATENSOR_CORE_SOURCE_DIR "" CACHE PATH "Path to the sources of metatensor-
|
|
|
14
14
|
|
|
15
15
|
file(REMOVE ${CMAKE_INSTALL_PREFIX}/_external.py)
|
|
16
16
|
|
|
17
|
-
set(REQUIRED_METATENSOR_VERSION "0.2.
|
|
17
|
+
set(REQUIRED_METATENSOR_VERSION "0.2.2")
|
|
18
18
|
if(${METATENSOR_CORE_PYTHON_USE_EXTERNAL_LIB})
|
|
19
19
|
# when building a source checkout, update version to include git information
|
|
20
20
|
# this will not apply when building a sdist
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: metatensor-core
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Python bindings for metatensor
|
|
5
5
|
Author: Guillaume Fraux, Rohit Goswami, Philip Loche, Filippo Bigi, Joseph W. Abbott, Davide Tisi, Alexander Goscinski, Michele Ceriotti
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -1169,6 +1169,10 @@ class Labels:
|
|
|
1169
1169
|
|
|
1170
1170
|
return self.values[:, index]
|
|
1171
1171
|
|
|
1172
|
+
# used by featomic, kept here until we update featomic to use the public API
|
|
1173
|
+
def _as_mts_labels_t(self):
|
|
1174
|
+
return self.as_mts_labels_t()
|
|
1175
|
+
|
|
1172
1176
|
|
|
1173
1177
|
def _normalize_names_type(names: Union[str, Sequence[str]]) -> List[str]:
|
|
1174
1178
|
"""
|
|
@@ -773,6 +773,11 @@ class TensorMap:
|
|
|
773
773
|
result[key] = self.get_info(key)
|
|
774
774
|
return result
|
|
775
775
|
|
|
776
|
+
# used by featomic, kept here until we update featomic to use the public API
|
|
777
|
+
@staticmethod
|
|
778
|
+
def _from_ptr(ptr):
|
|
779
|
+
return TensorMap.unsafe_from_ptr(ptr)
|
|
780
|
+
|
|
776
781
|
|
|
777
782
|
def _make_fill_value_array(tensor, fill_value):
|
|
778
783
|
"""
|
|
@@ -52,7 +52,11 @@ def _save_buffer_raw(mts_function, data) -> ctypes.Array:
|
|
|
52
52
|
)
|
|
53
53
|
|
|
54
54
|
# remove extra data from the buffer, resizing it to the number of written bytes
|
|
55
|
-
# (stored in buffer_size by the mts_function)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
# (stored in buffer_size by the mts_function). The original buffer was already
|
|
56
|
+
# resized by realloc during the C call; we create a view with the correct type
|
|
57
|
+
# metadata and keep the original buffer alive by attaching it to the result.
|
|
58
|
+
n = buffer_size.value
|
|
59
|
+
ctypes.resize(buffer, n)
|
|
60
|
+
result = (ctypes.c_char * n).from_address(ctypes.addressof(buffer))
|
|
61
|
+
result._keepalive = buffer
|
|
62
|
+
return result
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: metatensor-core
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Python bindings for metatensor
|
|
5
5
|
Author: Guillaume Fraux, Rohit Goswami, Philip Loche, Filippo Bigi, Joseph W. Abbott, Davide Tisi, Alexander Goscinski, Michele Ceriotti
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
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
|
|
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
|
{metatensor_core-0.2.1 → metatensor_core-0.2.2}/metatensor_core.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|