Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Commit

Permalink
fix pymatgen update break
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi Chen committed Oct 3, 2019
1 parent 3434a55 commit b109355
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions megnet/data/local_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ def get_nn_info(self, structure, n):

siw = []
for nn in neighs_dists:
s, w = nn.site, nn.distance
siw.append({'site': s,
'image': self._get_image(structure, s),
'weight': w,
'site_index': self._get_original_site(structure, s)})
neighbor, d, index, image = nn[0], nn[1]
siw.append({'site': neighbor,
'image': image
'weight': d,
'site_index': index
return siw

def get_all_nn_info(self, structure):
Expand Down

0 comments on commit b109355

Please sign in to comment.