def __eq__(self, other):
if super().__eq__(other) and(self._samples == other._samples).all():<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Two SamplePulses are the same if they are of the same type
        and have the same name and samples.

        Args:
            other (SamplePulse): other SamplePulse

        Returns:
            bool: are self and other equal.