Skip to content

Commit

Permalink
Mini cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
ceriottm committed Dec 29, 2024
1 parent 5e2029d commit deb2ef8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/torchpme/utils/tuning/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,5 @@ def __init__(
self._cell = cell
self._positions = positions

def timing(self, **kwargs):
input = self.cell
return torch.zeros(
1, dtype=input.dtype, layout=input.layout, device=input.device
)

def error(self, **kwargs):
input = self.cell
return torch.zeros(
1, dtype=input.dtype, layout=input.layout, device=input.device
)

def forward(self, **kwargs):
return self.error(**kwargs)
1 change: 1 addition & 0 deletions src/torchpme/utils/tuning/ewald.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def err_rspace(self, smearing, cutoff):
def forward(self, smearing, lr_wavelength, cutoff):
r"""
Calculate the error bound of Ewald.
:param smearing: see :class:`torchpme.EwaldCalculator` for details
:param lr_wavelength: see :class:`torchpme.EwaldCalculator` for details
:param cutoff: see :class:`torchpme.EwaldCalculator` for details
Expand Down
1 change: 1 addition & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ pytest
pytest-cov
scipy
vesin >= 0.3.0
vesin[torch] >= 0.3.0

0 comments on commit deb2ef8

Please sign in to comment.