Skip to content

Commit

Permalink
ensure old bandstructure dicts produce numpy arrays and Spin objects
Browse files Browse the repository at this point in the history
  • Loading branch information
computron committed Dec 22, 2016
1 parent 6bb90b5 commit b7533a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pymatgen/electronic_structure/bandstructure.py
Expand Up @@ -863,10 +863,10 @@ def from_old_dict(cls, d):
orb])):
ddddd.append(d['projections'][spin][i][j][
orb][l])
dddd.append(ddddd)
ddd.append(dddd)
dd.append(ddd)
projections[spin] = dd
dddd.append(np.array(ddddd))
ddd.append(np.array(dddd))
dd.append(np.array(ddd))
projections[Spin(int(spin))] = np.array(dd)

return BandStructureSymmLine(
d['kpoints'], {Spin(int(k)): d['bands'][k]
Expand Down

0 comments on commit b7533a5

Please sign in to comment.