Skip to content

Commit

Permalink
Add some comments on the hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
frostedoyster committed Jan 26, 2024
1 parent f8b2325 commit ecb8279
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions scripts/setup.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit ecb8279

Please sign in to comment.