obspy.clients.fdsn.mass_downloader.download_helpers.TimeInterval

class TimeInterval(start, end, filename=None, status=None)[source]

Bases: obspy.clients.fdsn.mass_downloader.download_helpers._SlotsEqualityComparisionObject

Simple object representing a time interval of a channel.

It knows the temporal bounds of the interval, the (desired) filename, and the current status of the interval.

Parameters
  • start (UTCDateTime) – The start of the interval.

  • end (UTCDateTime) – The end of the interval.

  • filename (str) – The filename of the interval.

  • status – The status of the time interval.

  • statusSTATUS

Attributes

start

end

filename

status

Special Methods

TimeInterval.__delattr__(name, /)

Implement delattr(self, name).

TimeInterval.__dir__()

Default dir() implementation.

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

Default object formatter.

TimeInterval.__ge__(value, /)

Return self>=value.

TimeInterval.__getattribute__(name, /)

Return getattr(self, name).

TimeInterval.__gt__(value, /)

Return self>value.

TimeInterval.__init__(start, end, filename=None, status=None)[source]
TimeInterval.__init_subclass__()

This method is called when a class is subclassed.

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

TimeInterval.__le__(value, /)

Return self<=value.

TimeInterval.__lt__(value, /)

Return self<value.

TimeInterval.__ne__(value, /)

Return self!=value.

TimeInterval.__new__(**kwargs)
TimeInterval.__reduce__()

Helper for pickle.

TimeInterval.__reduce_ex__(protocol, /)

Helper for pickle.

TimeInterval.__repr__()[source]
TimeInterval.__setattr__(name, value, /)

Implement setattr(self, name, value).

TimeInterval.__sizeof__()

Size of object in memory, in bytes.

TimeInterval.__str__()

Return str(self).

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