Skip to content

Commit

Permalink
Merge pull request #1568 from pyiron/sphinx_log_parser
Browse files Browse the repository at this point in the history
Changes to sphinx log file parsing  and spin detection
  • Loading branch information
skatnagallu authored Sep 18, 2024
2 parents 8af2f30 + a045e9c commit b1f555d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyiron_atomistics/sphinx/output_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def index_permutation(self):

@property
def spin_enabled(self):
return len(re.findall("The spin for the label", self.log_file)) > 0
return len(re.findall("Spin moment:", self.log_file)) > 0

@property
def log_main(self):
Expand Down Expand Up @@ -405,7 +405,7 @@ def get_convergence(self):
return convergence

def get_fermi(self):
pattern = r"Fermi energy:\s+(\d+\.\d+)\s+eV"
pattern = r"Fermi energy:\s+(-?\d+\.\d+)\s+eV"
return np.array(re.findall(pattern, self.log_main)).astype(float)

@property
Expand Down

0 comments on commit b1f555d

Please sign in to comment.