Skip to content

Commit

Permalink
make the values of magmom clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
mikelgda committed Nov 22, 2024
1 parent 8624b48 commit ec927f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions irrep/spacegroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ def __init__(
else:
no_match_symmetries = False

if magmom is None: # No magnetic moments
if magmom is None: # No magnetic moments magmom = None

self.magnetic = False
dataset = spglib.get_symmetry_dataset(cell)
Expand All @@ -758,9 +758,9 @@ def __init__(
translations = dataset.translations
time_reversal_list = [False] * len(rotations) # to do: change it to implement grey groups

elif hasattr(magmom, "__len__"): # Magnetic moments from input
elif hasattr(magmom, "__len__"): # Magnetic moments from input magmom is array
self.magnetic = True
else: # --time-reversal set
else: # --time-reversal set means magmom = True
self.magnetic = True
magmom = np.zeros((len(self.positions), 3), dtype=float)

Expand Down

0 comments on commit ec927f7

Please sign in to comment.