Check whether this structure is similar to another structure.
        Basically a convenience method to call structure matching fitting.

        Args:
            other (IStructure/Structure): Another structure.
            **kwargs: Same **kwargs as in
                :class:`pymatgen.analysis.structure_matcher.StructureMatcher`.

        Returns:
            (bool) True is the structures are similar under some affine
            transformation.

def matches(self, other, **kwargs):
        """
        Check whether this structure is similar to another structure.
        Basically a convenience method to call structure matching fitting.

        Args:
            other (IStructure/Structure): Another structure.
            **kwargs: Same **kwargs as in
                :class:`pymatgen.analysis.structure_matcher.StructureMatcher`.

        Returns:
            (bool) True is the structures are similar under some affine
            transformation.
        """
        from pymatgen.analysis.structure_matcher import StructureMatcher
        m = StructureMatcher(**kwargs)
        return m.fit(Structure.from_sites(self), Structure.from_sites(other))