Skip to content

Commit

Permalink
fixed bug in dataset query
Browse files Browse the repository at this point in the history
  • Loading branch information
BowenD-UCB committed Sep 9, 2024
1 parent 180ffea commit ce1f29c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/QueryMPtrj.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,8 @@ class UniquenessCheck:
self.uniq_struct_list.append((energy, struct))
return True

n_atom = struct.composition.num_atoms
min_e_diff = min(
[abs(energy - tmp[0]) / n_atom for tmp in self.uniq_struct_list]
[abs(energy - tmp[0]) for tmp in self.uniq_struct_list]
)

if min_e_diff > self.energy_threshold:
Expand Down

0 comments on commit ce1f29c

Please sign in to comment.