Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jla-gardner committed Feb 15, 2025
1 parent 4cfaea0 commit 6293a99
Show file tree
Hide file tree
Showing 4 changed files with 502 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Next verify the tests all pass:

```bash
pip install pytest
pytest src/ # or uv run pytest src/
pytest tests/ # or uv run pytest tests/
```

Then push your changes back to your fork of the repository:
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ requires-python = ">=3.9"

[project.optional-dependencies]
test = ["pytest", "pytest-cov"]
dev = ["ruff", "sphinx-autobuild"]
docs = [
"sphinx",
"furo",
Expand Down Expand Up @@ -130,3 +129,6 @@ filterwarnings = [
"ignore:.*The TorchScript type system doesn't support instance-level annotations on empty non-base types.*",
]
norecursedirs = "tests/helpers"

[dependency-groups]
dev = ["notebook>=7.3.2", "ruff", "sphinx-autobuild"]
4 changes: 3 additions & 1 deletion src/graph_pes/atomic_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ def from_ase(
cell = torch.tensor(structure.cell.array, dtype=_float)

# neighbour list
i, j, offsets = vesin.ase_neighbor_list("ijS", structure, cutoff)
i, j, offsets = vesin.ase_neighbor_list("ijS", structure, float(cutoff))
i = i.astype(np.int64)
j = j.astype(np.int64)
neighbour_list = torch.tensor(np.vstack([i, j]), dtype=torch.long)
neighbour_cell_offsets = torch.tensor(offsets, dtype=_float)

Expand Down
Loading

0 comments on commit 6293a99

Please sign in to comment.