Skip to content

Commit

Permalink
added spin extraction to siesta stdout
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Papior <[email protected]>
  • Loading branch information
zerothi committed Nov 29, 2024
1 parent 13edcb9 commit 846bb07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sisl/io/siesta/stdout.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def _parse_spin(attr, instance, match):
"""Parse 'redata: Spin configuration *= <value>'"""
opt = match.string.split("=")[-1].strip()

if opt.startswith("nambu"):
return Spin("nambu")

Check warning on line 48 in src/sisl/io/siesta/stdout.py

View check run for this annotation

Codecov / codecov/patch

src/sisl/io/siesta/stdout.py#L48

Added line #L48 was not covered by tests
if opt.startswith("spin-orbit"):
return Spin("spin-orbit")
if opt.startswith("collinear") or opt.startswith("colinear"):
Expand Down

0 comments on commit 846bb07

Please sign in to comment.