You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the inverse of MagSymmOp is called, an error, TypeError: MagSymmOp.__init__() missing 1 required positional argument: 'time_reversal', happens. This is probably because, in the definition in class SymmOp,
@propertydefinverse(self) ->Self:
"""Inverse of transformation."""inverse=np.linalg.inv(self.affine_matrix)
returntype(self)(inverse)
type(self) does not take a time_reversal argument.
Expected Behavior
returns a MagSymmOp instance whose affine_matrix is inversed.
Minimal example
No response
Relevant files to reproduce this bug
No response
The text was updated successfully, but these errors were encountered:
Python version
Python 3.11.7
Pymatgen version
2023.7.18
Operating system version
No response
Current behavior
When the
inverse
ofMagSymmOp
is called, an error,TypeError: MagSymmOp.__init__() missing 1 required positional argument: 'time_reversal'
, happens. This is probably because, in the definition inclass SymmOp
,type(self)
does not take atime_reversal
argument.Expected Behavior
returns a
MagSymmOp
instance whoseaffine_matrix
is inversed.Minimal example
No response
Relevant files to reproduce this bug
No response
The text was updated successfully, but these errors were encountered: