Skip to content

Commit

Permalink
Revert backward incompatible symmop rename.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed May 8, 2024
1 parent 21919d9 commit 6c696cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pymatgen/core/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,17 +545,17 @@ class or as list or np array-like
return Magmom.from_global_moment_and_saxis(transformed_moment, magmom.saxis)

@classmethod
def from_symmop(cls, symm_op: SymmOp, time_reversal) -> Self:
def from_symmop(cls, symmop: SymmOp, time_reversal) -> Self:
"""Initialize a MagSymmOp from a SymmOp and time reversal operator.
Args:
symm_op (SymmOp): SymmOp
symmop (SymmOp): SymmOp
time_reversal (int): Time reversal operator, +1 or -1.
Returns:
MagSymmOp object
"""
return cls(symm_op.affine_matrix, time_reversal, symm_op.tol)
return cls(symmop.affine_matrix, time_reversal, symmop.tol)

@staticmethod
def from_rotation_and_translation_and_time_reversal(
Expand Down

0 comments on commit 6c696cd

Please sign in to comment.