obspy.realtime.rtmemory.RtMemory

class RtMemory[source]

Bases: object

Real time memory class.

Public Methods

initialize

Create and initialize input and output arrays for this RtMemory object.

update_input

Update input memory using specified number of points from end of specified array.

update_output

Update output memory using specified number of points from end of specified array.

Private Methods

Warning

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

RtMemory._update(memory_array, data)[source]

Update specified memory array using specified number of points from end of specified data array.

Parameters:
  • memory_array (numpy.ndarray) – Memory array (input or output) in this RtMemory object to update.

  • data (numpy.ndarray) – Data array to use for update.

Returns:

NumPy ndarray object containing updated memory array (input or output).

Special Methods

RtMemory.__delattr__(name, /)

Implement delattr(self, name).

RtMemory.__dir__()

Default dir() implementation.

RtMemory.__eq__(value, /)

Return self==value.

RtMemory.__format__(format_spec, /)

Default object formatter.

RtMemory.__ge__(value, /)

Return self>=value.

RtMemory.__getattribute__(name, /)

Return getattr(self, name).

RtMemory.__gt__(value, /)

Return self>value.

RtMemory.__hash__()

Return hash(self).

RtMemory.__init__()[source]
RtMemory.__init_subclass__()

This method is called when a class is subclassed.

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

RtMemory.__le__(value, /)

Return self<=value.

RtMemory.__lt__(value, /)

Return self<value.

RtMemory.__ne__(value, /)

Return self!=value.

RtMemory.__new__(**kwargs)
RtMemory.__reduce__()

Helper for pickle.

RtMemory.__reduce_ex__(protocol, /)

Helper for pickle.

RtMemory.__repr__()

Return repr(self).

RtMemory.__setattr__(name, value, /)

Implement setattr(self, name, value).

RtMemory.__sizeof__()

Size of object in memory, in bytes.

RtMemory.__str__()

Return str(self).

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