Skip to content

Commit

Permalink
fix: ase 3.18.0 breaks the behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz committed Jul 19, 2019
1 parent 278302c commit 15a427f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mddatasetbuilder/datasetbuilder.py
Expand Up @@ -203,8 +203,7 @@ def _writestepmatrix(self, item):
# atom ID starts from 1
distances = step_atoms.get_distances(
atoma-1, range(len(step_atoms)), mic=True)
cutoffatomid = np.where(distances < self.cutoff)
cutoffatoms = step_atoms[cutoffatomid]
cutoffatoms = step_atoms[distances < self.cutoff]
symbols = cutoffatoms.get_chemical_symbols()
results.append(
(np.array([step, atoma]),
Expand Down

0 comments on commit 15a427f

Please sign in to comment.