obspy.core.inventory.util.ClockDrift
- class ClockDrift(value, **kwargs)[source]
Bases:
FloatWithUncertaintiesFixedUnit
ClockDrift object
Attributes
the imaginary part of a complex number |
|
the real part of a complex number |
|
Public Methods
Return integer ratio. |
|
Return self, the complex conjugate of any float. |
|
Create a floating-point number from a hexadecimal string. |
|
Return a hexadecimal representation of a floating-point number. |
|
Return True if the float is an integer. |
Special Methods
- ClockDrift.__abs__()
abs(self)
- ClockDrift.__add__(value, /)
Return self+value.
- ClockDrift.__bool__()
True if self else False
- ClockDrift.__ceil__()
Return the ceiling as an Integral.
- ClockDrift.__delattr__(name, /)
Implement delattr(self, name).
- ClockDrift.__dir__()
Default dir() implementation.
- ClockDrift.__divmod__(value, /)
Return divmod(self, value).
- ClockDrift.__eq__(value, /)
Return self==value.
- ClockDrift.__float__()
float(self)
- ClockDrift.__floor__()
Return the floor as an Integral.
- ClockDrift.__floordiv__(value, /)
Return self//value.
- ClockDrift.__format__(format_spec, /)
Formats the float according to format_spec.
- ClockDrift.__ge__(value, /)
Return self>=value.
- ClockDrift.__getattribute__(name, /)
Return getattr(self, name).
- ClockDrift.__getformat__()
You probably don’t want to use this function.
- typestr
Must be ‘double’ or ‘float’.
It exists mainly to be used in Python’s test suite.
This function returns whichever of ‘unknown’, ‘IEEE, big-endian’ or ‘IEEE, little-endian’ best describes the format of floating point numbers used by the C type named by typestr.
- ClockDrift.__getnewargs__()
- ClockDrift.__gt__(value, /)
Return self>value.
- ClockDrift.__hash__()
Return hash(self).
- ClockDrift.__iadd__(other)
- ClockDrift.__imul__(other)
- ClockDrift.__init__(value, lower_uncertainty=None, upper_uncertainty=None, measurement_method=None)
- ClockDrift.__init_subclass__()
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- ClockDrift.__int__()
int(self)
- ClockDrift.__le__(value, /)
Return self<=value.
- ClockDrift.__lt__(value, /)
Return self<value.
- ClockDrift.__mod__(value, /)
Return self%value.
- ClockDrift.__mul__(value, /)
Return self*value.
- ClockDrift.__ne__(value, /)
Return self!=value.
- ClockDrift.__neg__()
-self
- static ClockDrift.__new__(cls, value, **kwargs)
- ClockDrift.__pos__()
+self
- ClockDrift.__pow__(value, mod=None, /)
Return pow(self, value, mod).
- ClockDrift.__radd__(value, /)
Return value+self.
- ClockDrift.__rdivmod__(value, /)
Return divmod(value, self).
- ClockDrift.__reduce__()
Helper for pickle.
- ClockDrift.__reduce_ex__(protocol, /)
Helper for pickle.
- ClockDrift.__repr__()
Return repr(self).
- ClockDrift.__rfloordiv__(value, /)
Return value//self.
- ClockDrift.__rmod__(value, /)
Return value%self.
- ClockDrift.__rmul__(value, /)
Return value*self.
- ClockDrift.__round__(ndigits=None, /)
Return the Integral closest to x, rounding half toward even.
When an argument is passed, work like built-in round(x, ndigits).
- ClockDrift.__rpow__(value, mod=None, /)
Return pow(value, self, mod).
- ClockDrift.__rsub__(value, /)
Return value-self.
- ClockDrift.__rtruediv__(value, /)
Return value/self.
- ClockDrift.__setattr__(name, value, /)
Implement setattr(self, name, value).
- ClockDrift.__setformat__(fmt, /)
You probably don’t want to use this function.
- typestr
Must be ‘double’ or ‘float’.
- fmt
Must be one of ‘unknown’, ‘IEEE, big-endian’ or ‘IEEE, little-endian’, and in addition can only be one of the latter two if it appears to match the underlying C reality.
It exists mainly to be used in Python’s test suite.
Override the automatic determination of C-level floating point type. This affects how floats are converted to and from binary strings.
- ClockDrift.__sizeof__()
Size of object in memory, in bytes.
- ClockDrift.__str__()
Return str(self).
- ClockDrift.__sub__(value, /)
Return self-value.
- ClockDrift.__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).
- ClockDrift.__truediv__(value, /)
Return self/value.
- ClockDrift.__trunc__()
Return the Integral closest to x between 0 and x.