obspy.core.util.obspy_types.CustomComplex

class CustomComplex(*args)[source]

Bases: complex

Helper class to inherit from and which stores a complex number that is extendable.

Attributes

imag

the imaginary part of a complex number

real

the real part of a complex number

Public Methods

conjugate

Return the complex conjugate of its argument.

Special Methods

CustomComplex.__abs__()

abs(self)

CustomComplex.__add__(value, /)

Return self+value.

CustomComplex.__bool__()

True if self else False

CustomComplex.__delattr__(name, /)

Implement delattr(self, name).

CustomComplex.__dir__()

Default dir() implementation.

CustomComplex.__divmod__(value, /)

Return divmod(self, value).

CustomComplex.__eq__(value, /)

Return self==value.

CustomComplex.__float__()

float(self)

CustomComplex.__floordiv__(value, /)

Return self//value.

CustomComplex.__format__() str

Convert to a string according to format_spec.

CustomComplex.__ge__(value, /)

Return self>=value.

CustomComplex.__getattribute__(name, /)

Return getattr(self, name).

CustomComplex.__getnewargs__()
CustomComplex.__gt__(value, /)

Return self>value.

CustomComplex.__hash__()

Return hash(self).

CustomComplex.__iadd__(other)[source]
CustomComplex.__imul__(other)[source]
CustomComplex.__init__(*args)[source]
CustomComplex.__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

CustomComplex.__int__()

int(self)

CustomComplex.__le__(value, /)

Return self<=value.

CustomComplex.__lt__(value, /)

Return self<value.

CustomComplex.__mod__(value, /)

Return self%value.

CustomComplex.__mul__(value, /)

Return self*value.

CustomComplex.__ne__(value, /)

Return self!=value.

CustomComplex.__neg__()

-self

static CustomComplex.__new__(cls, *args)[source]
CustomComplex.__pos__()

+self

CustomComplex.__pow__(value, mod=None, /)

Return pow(self, value, mod).

CustomComplex.__radd__(value, /)

Return value+self.

CustomComplex.__rdivmod__(value, /)

Return divmod(value, self).

CustomComplex.__reduce__()

Helper for pickle.

CustomComplex.__reduce_ex__(protocol, /)

Helper for pickle.

CustomComplex.__repr__()

Return repr(self).

CustomComplex.__rfloordiv__(value, /)

Return value//self.

CustomComplex.__rmod__(value, /)

Return value%self.

CustomComplex.__rmul__(value, /)

Return value*self.

CustomComplex.__rpow__(value, mod=None, /)

Return pow(value, self, mod).

CustomComplex.__rsub__(value, /)

Return value-self.

CustomComplex.__rtruediv__(value, /)

Return value/self.

CustomComplex.__setattr__(name, value, /)

Implement setattr(self, name, value).

CustomComplex.__sizeof__()

Size of object in memory, in bytes.

CustomComplex.__str__()

Return str(self).

CustomComplex.__sub__(value, /)

Return self-value.

CustomComplex.__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

CustomComplex.__truediv__(value, /)

Return self/value.