Skip to content

Commit

Permalink
Only use length of array instead of whole array
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-schlipf committed Jan 10, 2020
1 parent 76bbc20 commit f3b27a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py4vasp/data/dos.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,5 @@ def _merge_labels(self, labels):

def _read_element(self, index):
sum_dos = lambda dos, i: dos + self._partial_dos[i]
zero_dos = np.zeros_like(self._energies[:])
zero_dos = np.zeros(len(self._energies))
return functools.reduce(sum_dos, itertools.product(*index), zero_dos)

0 comments on commit f3b27a6

Please sign in to comment.