Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
samwaseda committed Jan 10, 2022
1 parent 6780fc0 commit 4d21315
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tds/metadynamics_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def _get_neighbors(self, x):

def append_positions(self, x, symmetrize=True):
if symmetrize:
x_sym = self._get_symmetric_x(x)
dist, dx, unraveled_indices = self._get_neighbors(x_sym)
x = self._get_symmetric_x(x)
dist, dx, unraveled_indices = self._get_neighbors(x)
B = self.increment * np.exp(-dist**2 / (2 * self.sigma**2))
np.add.at(self.dBds, unraveled_indices, dx * B[:, np.newaxis] / self.sigma**2)
np.add.at(self.B, unraveled_indices, B)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_metadynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
import unittest
from pyiron_atomistics.atomistics.structure.factories.ase import AseFactory
from tds.metadynamics import UnitCell
from tds.metadynamics_3d import UnitCell


class TestUnitCell(unittest.TestCase):
Expand Down

0 comments on commit 4d21315

Please sign in to comment.