obspy.taup.helper_classes.DepthRange

class DepthRange(top_depth=None, bot_depth=None, ray_param=-1)[source]

Bases: object

Convenience class for storing a depth range. It has a top and a bottom and can have an associated ray parameter.

Private Methods

Warning

Private methods are mainly for internal/developer use and their API might change without notice.

static DepthRange._from_array(arr)[source]

Create instance object from a structured array used in serialization.

DepthRange._to_array()[source]

Store all attributes for serialization in a structured array.

Special Methods

DepthRange.__delattr__(name, /)

Implement delattr(self, name).

DepthRange.__dir__()

Default dir() implementation.

DepthRange.__eq__(value, /)

Return self==value.

DepthRange.__format__(format_spec, /)

Default object formatter.

DepthRange.__ge__(value, /)

Return self>=value.

DepthRange.__getattribute__(name, /)

Return getattr(self, name).

DepthRange.__gt__(value, /)

Return self>value.

DepthRange.__hash__()

Return hash(self).

DepthRange.__init__(top_depth=None, bot_depth=None, ray_param=-1)[source]
DepthRange.__init_subclass__()

This method is called when a class is subclassed.

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

DepthRange.__le__(value, /)

Return self<=value.

DepthRange.__lt__(value, /)

Return self<value.

DepthRange.__ne__(value, /)

Return self!=value.

DepthRange.__new__(**kwargs)
DepthRange.__reduce__()

Helper for pickle.

DepthRange.__reduce_ex__(protocol, /)

Helper for pickle.

DepthRange.__repr__()

Return repr(self).

DepthRange.__setattr__(name, value, /)

Implement setattr(self, name, value).

DepthRange.__sizeof__()

Size of object in memory, in bytes.

DepthRange.__str__()

Return str(self).

DepthRange.__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).