Coverage for /opt/obspy/update-docs/src/obspy/obspy/realtime/rtmemory : 95%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# -*- coding: utf-8 -*- Module for handling ObsPy RtMemory objects.
:copyright: The ObsPy Development Team (devs@obspy.org) & Anthony Lomax :license: GNU Lesser General Public License, Version 3 (http://www.gnu.org/copyleft/lesser.html) """
""" Real time memory class. """
input_inital_value=0, output_inital_value=0): """ Create and initialize input and output arrays for this RtMemory object.
:type data_type: data-type :param trace: Desired array data-type. :type length_input: int :param length_input: length of the input memory array. :type length_output: int :param length_output: length of the output memory array. :type input_inital_value: float, optional :param input_inital_value: Initialization value for the input memory array (default is 1.0). :type output_inital_value: float, optional :param output_inital_value: Initialization value for the output memory array (default is 1.0). """
""" Update specified memory array using specified number of points from end of specified data array.
:type memory_array: numpy.ndarray :param memory_array: Memory array (input or output) in this RtMemory object to update. :type data: numpy.ndarray :param data: Data array to use for update. :return: NumPy :class:`np.ndarray` object containing updated memory array (input or output). """ # data length greater than or equal to memory length else: # data length less than memory length # shift memory # append data
""" Update output memory using specified number of points from end of specified array.
:type data: numpy.ndarray :param data: Data array to use for update. """ self.output = self._update(self.output, data)
""" Update input memory using specified number of points from end of specified array.
:type data: numpy.ndarray :param data: Data array to use for update. """ |