Skip to content

Commit

Permalink
SOF-7417: chore ==> rewrite the ternary condition
Browse files Browse the repository at this point in the history
pranabdas committed Aug 6, 2024

Verified

This commit was signed with the committer’s verified signature.
erikmd Erik Martin-Dorel
1 parent 2304b3c commit ac25885
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ def __init__(self, name, parser, *args, **kwargs):
# and we return the same for versions above 6.4 if noncolin is True.
# However, for non-collinear magnetic case there are one eigenvalue per
# k-pont. Here we override nspins for non-collinear case.
self.nspins = self.parser.nspins() if self.parser.nspins() != 4 else 1
self.nspins = 1 if self.parser.nspins() == 4 else self.parser.nspins()

self.eigenvalues_at_kpoints = self.parser.eigenvalues_at_kpoints()
if kwargs.get("remove_non_zero_weight_kpoints", False):

0 comments on commit ac25885

Please sign in to comment.