class TauBranch(top_depth=0, bot_depth=0, is_p_wave=False)[source]

Bases: builtins.object

Provides storage and methods for distance, time and tau increments for a branch. A branch is a group of layers bounded by discontinuities or reversals in slowness gradient.


__doc__ str(object=’‘) -> str
__module__ str(object=’‘) -> str
__weakref__ list of weak references to the object (if defined)

Public Methods

calcTimeDist DEPRECATED: ‘calcTimeDist’ has been renamed to
createBranch DEPRECATED: ‘createBranch’ has been renamed to
create_branch Calculates tau for this branch, between slowness layers top_layer_num
difference Generates a new tau branch by “subtracting” the given tau branch from this tau branch (self).
insert Inserts the distance, time, and tau increment for the slowness sample given to the branch.
path Called from TauPPath to calculate ray paths.
shiftBranch DEPRECATED: ‘shiftBranch’ has been renamed to

Private Methods


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

_from_array Create instance object from a structured array used in serialization.
_to_array Store all attributes for serialization in a structured array.

Special Methods

__dir__ default dir() implementation
__format__ default object formatter
__new__ Create and return a new object.
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__sizeof__ size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().