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