Skip to content

Commit

Permalink
spx eigen values parser for mimization
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedabdelkawy committed Nov 14, 2023
1 parent 3b8f340 commit 7c06301
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyiron_atomistics/sphinx/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2284,10 +2284,10 @@ def n_steps(self):

def _parse_band(self, term):
arr = np.loadtxt(re.findall(term, self.log_main, re.MULTILINE))
shape = (-1, len(self.k_points), arr.shape[-1])
shape = (-1, len(self.k_points), 1, arr.shape[-1])
if self.spin_enabled:
shape = (-1, 2, len(self.k_points), shape[-1])
return arr.reshape(shape)
shape = (-1, len(self.k_points), 2, shape[-1])
return arr.reshape(shape).transpose(0,2,1,3)

def get_band_energy(self):
return self._parse_band("final eig \[eV\]:(.*)$")
Expand Down

0 comments on commit 7c06301

Please sign in to comment.