Skip to content

Commit

Permalink
removed superfluous unused NeighborSpoof class
Browse files Browse the repository at this point in the history
  • Loading branch information
M-R-Schaefer committed Nov 11, 2023
1 parent dea322f commit 990fe82
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
11 changes: 3 additions & 8 deletions apax/model/gmnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from apax.layers.properties import stress_times_vol
from apax.layers.readout import AtomisticReadout
from apax.layers.scaling import PerElementScaleShift
from apax.model.utils import NeighborSpoof
from apax.utils.math import fp64_sum

DisplacementFn = Callable[[Array, Array], Array]
Expand All @@ -26,11 +25,7 @@


def canonicalize_neighbors(neighbor):
return (
neighbor.idx
if isinstance(neighbor, (partition.NeighborList, NeighborSpoof))
else neighbor
)
return neighbor.idx if isinstance(neighbor, partition.NeighborList) else neighbor


def disp_fn(ri, rj, perturbation, box):
Expand Down Expand Up @@ -96,7 +91,7 @@ def __call__(
self,
R: Array,
Z: Array,
neighbor: Union[partition.NeighborList, NeighborSpoof, Array],
neighbor: Union[partition.NeighborList, Array],
box,
offsets,
perturbation=None,
Expand Down Expand Up @@ -143,7 +138,7 @@ def __call__(
self,
R: Array,
Z: Array,
neighbor: Union[partition.NeighborList, NeighborSpoof, Array],
neighbor: Union[partition.NeighborList, Array],
box,
offsets,
):
Expand Down
8 changes: 0 additions & 8 deletions apax/model/utils.py

This file was deleted.

2 changes: 0 additions & 2 deletions tests/unit_tests/model/test_apax.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ def test_energy_model():
]
)
offsets = jnp.full([6, 3], 0)
# neighbor = NeighborSpoof(idx=idx)

box = np.array([0.0, 0.0, 0.0])

model = EnergyModel()
Expand Down

0 comments on commit 990fe82

Please sign in to comment.