obspy.core.util.obspy_types.FloatWithUncertainties

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

Bases: obspy.core.util.obspy_types.CustomFloat

Helper class to inherit from and which stores a float with a given valid range, upper/lower uncertainties and eventual additional attributes.

Attributes

__dict__

__doc__

__module__

__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 integer ratio.

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.

__getnewargs__

__iadd__

__imul__

__init__

Initialize self.

__init_subclass__

This method is called when a class is subclassed.

__new__

Create and return a new object.

__reduce__

Helper for pickle.

__reduce_ex__

Helper for pickle.

__round__

Return the Integral closest to x, rounding half toward even.

__set_format__

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.