class FloatWithUncertaintiesFixedUnit(value, lower_uncertainty=None, upper_uncertainty=None, measurement_method=None)[source]

Bases: obspy.core.util.obspy_types.FloatWithUncertainties

Float value that has lower and upper uncertainties and a fixed unit associated with it. Helper class to inherit from setting a custom value for the fixed unit (set unit in derived class as class attribute).

  • value (float) Actual float value.
  • lower_uncertainty (float) Lower uncertainty (aka minusError)
  • upper_uncertainty (float) Upper uncertainty (aka plusError)
  • unit (str (read only)) Unit for physical interpretation of the float value.
  • measurement_method (str) Method used in the measurement.


__doc__ str(object=’‘) -> str
__module__ str(object=’‘) -> str
__weakref__ list of weak references to the object (if defined)
imag the imaginary part of a complex number
real the real part of a complex number

Public Methods

as_integer_ratio Return a pair of integers, whose ratio is exactly equal to the original float and with a positive denominator.
conjugate Return self, the complex conjugate of any float.
fromhex Create a floating-point number from a hexadecimal string.
hex Return a hexadecimal representation of a floating-point number.
is_integer Return True if the float is an integer.

Special Methods

__dir__ default dir() implementation
__format__ Formats the float according to format_spec.
__getformat__ You probably don’t want to use this function.
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__round__ Return the Integral closest to x, rounding half toward even.
__setformat__ You probably don’t want to use this function.
__sizeof__ size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().
__trunc__ Return the Integral closest to x between 0 and x.