obspy.core.inventory.util.Frequency
- class Frequency(value, **kwargs)[source]
Bases:
FloatWithUncertaintiesFixedUnit
Frequency 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
- Frequency.__abs__()
abs(self)
- Frequency.__add__(value, /)
Return self+value.
- Frequency.__bool__()
True if self else False
- Frequency.__ceil__()
Return the ceiling as an Integral.
- Frequency.__delattr__(name, /)
Implement delattr(self, name).
- Frequency.__dir__()
Default dir() implementation.
- Frequency.__divmod__(value, /)
Return divmod(self, value).
- Frequency.__eq__(value, /)
Return self==value.
- Frequency.__float__()
float(self)
- Frequency.__floor__()
Return the floor as an Integral.
- Frequency.__floordiv__(value, /)
Return self//value.
- Frequency.__format__(format_spec, /)
Formats the float according to format_spec.
- Frequency.__ge__(value, /)
Return self>=value.
- Frequency.__getattribute__(name, /)
Return getattr(self, name).
- Frequency.__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.
- Frequency.__getnewargs__()
- Frequency.__gt__(value, /)
Return self>value.
- Frequency.__hash__()
Return hash(self).
- Frequency.__iadd__(other)
- Frequency.__imul__(other)
- Frequency.__init__(value, lower_uncertainty=None, upper_uncertainty=None, measurement_method=None)
- Frequency.__init_subclass__()
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- Frequency.__int__()
int(self)
- Frequency.__le__(value, /)
Return self<=value.
- Frequency.__lt__(value, /)
Return self<value.
- Frequency.__mod__(value, /)
Return self%value.
- Frequency.__mul__(value, /)
Return self*value.
- Frequency.__ne__(value, /)
Return self!=value.
- Frequency.__neg__()
-self
- static Frequency.__new__(cls, value, **kwargs)
- Frequency.__pos__()
+self
- Frequency.__pow__(value, mod=None, /)
Return pow(self, value, mod).
- Frequency.__radd__(value, /)
Return value+self.
- Frequency.__rdivmod__(value, /)
Return divmod(value, self).
- Frequency.__reduce__()
Helper for pickle.
- Frequency.__reduce_ex__(protocol, /)
Helper for pickle.
- Frequency.__repr__()
Return repr(self).
- Frequency.__rfloordiv__(value, /)
Return value//self.
- Frequency.__rmod__(value, /)
Return value%self.
- Frequency.__rmul__(value, /)
Return value*self.
- Frequency.__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).
- Frequency.__rpow__(value, mod=None, /)
Return pow(value, self, mod).
- Frequency.__rsub__(value, /)
Return value-self.
- Frequency.__rtruediv__(value, /)
Return value/self.
- Frequency.__setattr__(name, value, /)
Implement setattr(self, name, value).
- Frequency.__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.
- Frequency.__sizeof__()
Size of object in memory, in bytes.
- Frequency.__str__()
Return str(self).
- Frequency.__sub__(value, /)
Return self-value.
- Frequency.__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).
- Frequency.__truediv__(value, /)
Return self/value.
- Frequency.__trunc__()
Return the Integral closest to x between 0 and x.