obspy.core.inventory.util.DataAvailabilitySpan

class DataAvailabilitySpan(start, end, number_of_segments, maximum_time_tear=None)[source]

Bases: obspy.core.util.base.ComparingObject

Data availability spans are represented by a start time, end time, number of segments contained in the span and maximum time tear within a certain span.

Parameters
  • start (UTCDateTime) – Start of time span

  • end (UTCDateTime) – End of time span

  • number_of_segments (int) – The number of continuous time series segments contained in the specified time range. A value of 1 indicates that the time series is continuous from start to end.

  • maximum_time_tear (float) – The maximum time tear (gap or overlap) in seconds between time series segments in the specified range.

Private Methods

Warning

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

DataAvailabilitySpan._repr_pretty_(p, cycle)[source]

Special Methods

DataAvailabilitySpan.__delattr__(name, /)

Implement delattr(self, name).

DataAvailabilitySpan.__dir__()

Default dir() implementation.

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

Default object formatter.

DataAvailabilitySpan.__ge__(value, /)

Return self>=value.

DataAvailabilitySpan.__getattribute__(name, /)

Return getattr(self, name).

DataAvailabilitySpan.__gt__(value, /)

Return self>value.

DataAvailabilitySpan.__init__(start, end, number_of_segments, maximum_time_tear=None)[source]
DataAvailabilitySpan.__init_subclass__()

This method is called when a class is subclassed.

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

DataAvailabilitySpan.__le__(value, /)

Return self<=value.

DataAvailabilitySpan.__lt__(value, /)

Return self<value.

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

Helper for pickle.

DataAvailabilitySpan.__reduce_ex__(protocol, /)

Helper for pickle.

DataAvailabilitySpan.__repr__()

Return repr(self).

DataAvailabilitySpan.__setattr__(name, value, /)

Implement setattr(self, name, value).

DataAvailabilitySpan.__sizeof__()

Size of object in memory, in bytes.

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