obspy.taup.tau.Arrivals

class Arrivals(arrivals, model)[source]

Bases: list

List like object of arrivals returned by TauPyModel methods.

Parameters:
  • arrivals (list of Arrival) – Initial arrivals to store.

  • model (TauPyModel) – The model used to calculate the arrivals.

Attributes

model

Public Methods

append

clear

Remove all items from list.

copy

count

Return number of occurrences of value.

extend

Extend list by appending elements from the iterable.

index

Return first index of value.

insert

Insert object before index.

plot

Plot ray paths if any have been calculated.

plot_rays

Plot ray paths if any have been calculated.

plot_times

Plot arrival times if any have been calculated.

pop

Remove and return item at index (default last).

remove

Remove first occurrence of value.

reverse

Reverse IN PLACE.

sort

Sort the list in ascending order and return None.

Special Methods

Arrivals.__add__(other)[source]
Arrivals.__class_getitem__()

See PEP 585

Arrivals.__contains__(key, /)

Return key in self.

Arrivals.__delattr__(name, /)

Implement delattr(self, name).

Arrivals.__delitem__(key, /)

Delete self[key].

Arrivals.__dir__()

Default dir() implementation.

Arrivals.__eq__(value, /)

Return self==value.

Arrivals.__format__(format_spec, /)

Default object formatter.

Arrivals.__ge__(value, /)

Return self>=value.

Arrivals.__getattribute__(name, /)

Return getattr(self, name).

Arrivals.__getitem__(index)[source]
Arrivals.__getslice__(i, j)[source]
Arrivals.__gt__(value, /)

Return self>value.

Arrivals.__iadd__(other)[source]
Arrivals.__imul__(num)[source]
Arrivals.__init__(arrivals, model)[source]
Arrivals.__init_subclass__()

This method is called when a class is subclassed.

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

Arrivals.__iter__()

Implement iter(self).

Arrivals.__le__(value, /)

Return self<=value.

Arrivals.__len__()

Return len(self).

Arrivals.__lt__(value, /)

Return self<value.

Arrivals.__mul__(num)[source]
Arrivals.__ne__(value, /)

Return self!=value.

Arrivals.__new__(**kwargs)
Arrivals.__reduce__()

Helper for pickle.

Arrivals.__reduce_ex__(protocol, /)

Helper for pickle.

Arrivals.__repr__()[source]
Arrivals.__reversed__()

Return a reverse iterator over the list.

Arrivals.__rmul__(value, /)

Return value*self.

Arrivals.__setattr__(name, value, /)

Implement setattr(self, name, value).

Arrivals.__setitem__(index, arrival)[source]
Arrivals.__setslice__(i, j, seq)[source]
Arrivals.__sizeof__()

Return the size of the list in memory, in bytes.

Arrivals.__str__()[source]
Arrivals.__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).