Miscellaneous#

Error handling#

class metatensor.MetatensorError(message, status=None)[source]#

This class is used to throw exceptions for all errors in metatensor.

class metatensor.DeviceWarning[source]#

Custom warning class for device mismatch in TensorBlock and TensorMap.

CMake integration#

metatensor.utils.cmake_prefix_path#

Path containing the CMake configuration files for the underlying C library