code: def from_symmop(cls, symmop, time_reversal):
          
          magsymmop = cls(symmop.affine_matrix, time_reversal, symmop.tol)
          return magsymmop
docs: 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