From ecb82796728e47556cba12fb4cf85e3e3cf7ceb6 Mon Sep 17 00:00:00 2001 From: frostedoyster Date: Fri, 26 Jan 2024 15:26:21 +0100 Subject: [PATCH] Add some comments on the hacks --- MANIFEST.in | 2 ++ scripts/setup.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/MANIFEST.in b/MANIFEST.in index 6e5e7d3c9..e62bc4554 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,6 +2,8 @@ graft src include LICENSE include README.md + +# TODO: remove once the hack is not needed anymore include scripts/setup.py prune docs diff --git a/scripts/setup.py b/scripts/setup.py index ae18978f6..5d1f805a1 100644 --- a/scripts/setup.py +++ b/scripts/setup.py @@ -1,3 +1,7 @@ +# Since torch.jit.save cannot handle Labels.single(), we need to replace it with +# Labels(names=["_"], values=_dispatch.zeros_like(block.values, (1, 1))) +# in metatensor-operations. This is a hacky way to do it. + import os import metatensor.operations