obspy.core.inventory.util.DataAvailability

class DataAvailability(start=None, end=None, spans=None)[source]

Bases: obspy.core.util.base.ComparingObject

A description of time series data availability. This information should be considered transient and is primarily useful as a guide for generating time series data requests. The information for a DataAvailability (time) span may be specific to the time range used in a request that resulted in the document or limited to the availability of data within the request range. These details may or may not be retained when synchronizing metadata between data centers. Spans of data are represented by a start time, end time, number of segments contained in the span and maximum time tear within a certain span.

Parameters

Attributes

spans

Private Methods

Warning

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

DataAvailability._repr_pretty_(p, cycle)[source]

Special Methods

DataAvailability.__delattr__(name, /)

Implement delattr(self, name).

DataAvailability.__dir__()

Default dir() implementation.

DataAvailability.__eq__(other)
DataAvailability.__format__(format_spec, /)

Default object formatter.

DataAvailability.__ge__(value, /)

Return self>=value.

DataAvailability.__getattribute__(name, /)

Return getattr(self, name).

DataAvailability.__gt__(value, /)

Return self>value.

DataAvailability.__init__(start=None, end=None, spans=None)[source]
DataAvailability.__init_subclass__()

This method is called when a class is subclassed.

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

DataAvailability.__le__(value, /)

Return self<=value.

DataAvailability.__lt__(value, /)

Return self<value.

DataAvailability.__ne__(other)
DataAvailability.__new__(**kwargs)
DataAvailability.__reduce__()

Helper for pickle.

DataAvailability.__reduce_ex__(protocol, /)

Helper for pickle.

DataAvailability.__repr__()

Return repr(self).

DataAvailability.__setattr__(name, value, /)

Implement setattr(self, name, value).

DataAvailability.__sizeof__()

Size of object in memory, in bytes.

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