TimeBox

class mss_dataserver.geometry.inventory.TimeBox(item, start_time, end_time=None, parent=None)[source]

Bases: object

A container to hold an instance with an assigned time-span.

Parameters
  • item (object) – The timebox content.

  • start_time (obspy.UTCDateTime) – The start time of the timebox container.

  • end_time (obspy.UTCDateTime) – The end time of the timebox container. None if no end exists.

  • parent (object) – The instance containing the timebox.

Properties

end_time_string

str: The string representation of the end time.

start_time_string

str: The string representation of the start time.

Methods

__init__(item, start_time[, end_time, parent])

Initialize the instance.

as_dict([style])

Get a dictionary representation of the instance.

Inheritence diagram

Inheritance diagram of mss_dataserver.geometry.inventory.TimeBox