Skip to content

Commit

Permalink
Minor cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Dec 6, 2017
1 parent 37529f3 commit c99dba0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pymatgen/analysis/diffusion_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,6 @@ def export_msdt(self, filename):
msdc) + [mscd]]))
f.write("\n")


@classmethod
def from_structures(cls, structures, specie, temperature,
time_step, step_skip, initial_disp=None,
Expand Down Expand Up @@ -587,8 +586,6 @@ def from_structures(cls, structures, specie, temperature,
"""
p, l = [], []
for i, s in enumerate(structures):
if i == 0:
structure = s
p.append(np.array(s.frac_coords)[:, None])
l.append(s.lattice.matrix)
if initial_structure is not None:
Expand All @@ -613,7 +610,7 @@ def from_structures(cls, structures, specie, temperature,
if initial_disp is not None:
disp += initial_disp[:, None, :]

return cls(structure, disp, specie, temperature, time_step,
return cls(structures[0], disp, specie, temperature, time_step,
step_skip=step_skip, lattices=l, **kwargs)

@classmethod
Expand Down

0 comments on commit c99dba0

Please sign in to comment.